Skip to content

Commit 5ad7490

Browse files
committed
Remove unused import and fix broken tests
1 parent e2a074a commit 5ad7490

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

utbot-summary-tests/src/test/kotlin/examples/SummaryTestCaseGeneratorTest.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import org.utbot.framework.UtSettings.checkSolverTimeoutMillis
1111
import org.utbot.framework.codegen.TestExecution
1212
import org.utbot.framework.plugin.api.*
1313
import org.utbot.framework.plugin.api.util.UtContext
14-
import org.utbot.summary.UtSummarySettings
1514
import org.utbot.summary.comment.nextSynonyms
1615
import org.utbot.summary.summarize
1716
import kotlin.reflect.KClass

utbot-summary/src/main/kotlin/org/utbot/summary/comment/SimpleCommentBuilder.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ open class SimpleCommentBuilder(
154154
if (exceptionNode == null) return ""
155155

156156
reason += when {
157-
exceptionNode is IfStmt -> "{@code ${exceptionNode.condition}}"
158-
isLoopStatement(exceptionNode) -> "{@code ${getTextIterationDescription(exceptionNode)}"
157+
exceptionNode is IfStmt -> exceptionNode.condition.toString()
158+
isLoopStatement(exceptionNode) -> getTextIterationDescription(exceptionNode)
159159
exceptionNode is SwitchStmt -> textSwitchCase(step, jimpleToASTMap)
160160
else -> exceptionNode.toString()
161161
}

0 commit comments

Comments
 (0)