Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,15 @@ class SummaryMinStackTest : SummaryTestCaseGeneratorTest(
val summary7 = "@utbot.classUnderTest {@link MinStack}\n" +
"@utbot.methodUnderTest {@link org.utbot.examples.structures.MinStack#addValue(long)}\n" +
"@utbot.executesCondition {@code (size == 0): False}\n" +
"@utbot.invokes {@code {@link java.lang.Math#min(long,long)}}\n" +
"@utbot.invokes {@link java.lang.Math#min(long,long)}\n" +
"@utbot.throwsException {@link java.lang.ArrayIndexOutOfBoundsException} in: minStack[size] = Math.min(minStack[size - 1], value);"
val summary8 = "@utbot.classUnderTest {@link MinStack}\n" +
"@utbot.methodUnderTest {@link org.utbot.examples.structures.MinStack#addValue(long)}\n" +
"@utbot.executesCondition {@code (size == 0): True}\n"
val summary9 = "@utbot.classUnderTest {@link MinStack}\n" +
"@utbot.methodUnderTest {@link org.utbot.examples.structures.MinStack#addValue(long)}\n" +
"@utbot.executesCondition {@code (size == 0): False}\n" +
"@utbot.invokes {@code {@link java.lang.Math#min(long,long)}}\n"
"@utbot.invokes {@link java.lang.Math#min(long,long)}\n"

val methodName1 = "testAddValue_ThrowArrayIndexOutOfBoundsException"
val methodName2 = "testAddValue_ThrowNullPointerException"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class CustomJavaDocCommentBuilder(
comment: CustomJavaDocComment
) {
when (statement.stmtType) {
StmtType.Invoke -> comment.invokes += "{@code ${statement.description.replace(CARRIAGE_RETURN, "")}}"
StmtType.Invoke -> comment.invokes += statement.description.replace(CARRIAGE_RETURN, "")
StmtType.Condition -> comment.executesCondition += "{@code ${statement.description.replace(CARRIAGE_RETURN, "")}}"
StmtType.Return -> comment.returnsFrom = "{@code ${statement.description.replace(CARRIAGE_RETURN, "")}}"
StmtType.CaughtException -> comment.caughtException = "{@code ${statement.description.replace(CARRIAGE_RETURN, "")}}"
Expand Down