@utbot.triggersRecursion tag is missing #1014
Copy link
Copy link
Closed
Labels
comp-summariesSomething related to the method names, code comments and display names generationSomething related to the method names, code comments and display names generationctg-bugIssue is a bugIssue is a bugspec-release-tailingsFailed to include in the current release, let's include it in the next oneFailed to include in the current release, let's include it in the next onestatus-verifiedBug fix is verifiedBug fix is verified
Milestone
Description
Description
@utbot.triggersRecursion tag is missing for Recursion.fib(int n) tests
To Reproduce
- Run the UTBot project in IntelliJ Idea 2022.1.4
- Install plugin
- Check: File -> Settings -> Tools -> UnitTestBot -> Javadoc comment style is "Structured via custom Javadoc tags"
- Open the utbot-sample/src/main/java/org/utbot/examples/recursion/Recursion.java file
- Generate tests for the methods
- Open the generated test
Expected behavior
Tests with input n >= 1 are supposed to have @utbot.triggersRecursion tag in Java doc.
Actual behavior
Tests with input (n = 1), (n = 2) do not have @utbot.triggersRecursion tag in Java doc.
Visual proofs (screenshots, logs, images)
/**
* @utbot.classUnderTest {@link Recursion}
* @utbot.methodUnderTest {@link Recursion#fib(int)}
* @utbot.executesCondition {@code (n == 1): False}
* @utbot.returnsFrom {@code return fib(n - 1) + fib(n - 2);}
*/
@Test
@DisplayName("fib: return 1 -> return 0")
public void testFib_NNotEquals1() {
Recursion recursion = new Recursion();
int actual = recursion.fib(2);
assertEquals(1, actual);
}Environment
Windows 10 Pro
Gradle project
JDK 11
Metadata
Metadata
Assignees
Labels
comp-summariesSomething related to the method names, code comments and display names generationSomething related to the method names, code comments and display names generationctg-bugIssue is a bugIssue is a bugspec-release-tailingsFailed to include in the current release, let's include it in the next oneFailed to include in the current release, let's include it in the next onestatus-verifiedBug fix is verifiedBug fix is verified
Type
Projects
- StatusShow more project fieldsDone
Activity
alisevych commentedon Sep 26, 2022
@amandelpie
amandelpie commentedon Sep 28, 2022
Thanks @alisevych , probably it will be fixed in the next release looks like missed and unsupported functionlity
alisevych commentedon Nov 1, 2022
@amandelpie
Issue is reproducing on the latest main
Please check
amandelpie commentedon Nov 1, 2022
Thanks for the signal, @alisevych will do a check during next 2 weeks
amandelpie commentedon Nov 2, 2022
With Symbolic Execution = 90% I've obtained
Looks like we have the same test but with different metadata
alisevych commentedon Nov 2, 2022
@amandelpie Not reproducing for me either - on the latest main. Verified on IDEA 2022.1.4 and 2022.2.3
amandelpie commentedon Nov 2, 2022
I think it is not a bug, looks like a result of soot analysis, sometimes it is missed the recursion