Closed
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
Type
Projects
Status
Done