Skip to content

Commit 8ed5b07

Browse files
mmvpmzishkaz
authored andcommitted
Fix filtering of UtMockAssumptionViolatedException (#1592)
1 parent cd58102 commit 8ed5b07

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utbot-framework/src/main/kotlin/org/utbot/engine/UtBotSymbolicEngine.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,11 @@ class UtBotSymbolicEngine(
255255
return@measureTime
256256
}
257257

258+
if (concreteExecutionResult.violatesUtMockAssumption()) {
259+
logger.debug { "Generated test case violates the UtMock assumption: $concreteExecutionResult" }
260+
return@bracket
261+
}
262+
258263
val concreteUtExecution = UtSymbolicExecution(
259264
stateBefore,
260265
concreteExecutionResult.stateAfter,

0 commit comments

Comments
 (0)