Skip to content

Lost information about executed condition in the comment for Recursion:factorial() #900

Open
@onewhl

Description

@onewhl

Description

Both CustomJavaDocCommentBuilder and SimpleCommentBuilder lose information about executed condition in the comment for Recursion#factorial() example.

I reproduced it in both modes -- with custom tags and without them.

To Reproduce

Run test generation for class Recursion#factorial().

Expected behavior

@utbot.classUnderTest {@link Recursion}
@utbot.methodUnderTest {@link org.utbot.examples.recursion.Recursion#factorial(int)}
@utbot.executesCondition {@code (n == 0): True}
@utbot.returnsFrom {@code return 1;}

Actual behavior

@utbot.classUnderTest {@link Recursion}
@utbot.methodUnderTest {@link org.utbot.examples.recursion.Recursion#factorial(int)}
//LOST THIS ONE @utbot.executesCondition {@code (n == 0): True}
@utbot.returnsFrom {@code return 1;}

Metadata

Metadata

Assignees

Labels

ctg-bugIssue is a bug

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions