File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
utbot-junit-contest/src/main/kotlin/org/utbot/contest/usvm Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ import org.utbot.framework.plugin.api.UtPrimitiveModel
50
50
import org.utbot.framework.plugin.api.UtStaticMethodInstrumentation
51
51
import org.utbot.framework.plugin.api.util.classClassId
52
52
import org.utbot.framework.plugin.api.util.objectClassId
53
+ import org.utbot.framework.plugin.api.util.voidClassId
53
54
import org.utbot.fuzzer.IdGenerator
54
55
55
56
class UTestInst2UtModelConverter (
@@ -322,7 +323,14 @@ class UTestInst2UtModelConverter(
322
323
323
324
initMethodExprs
324
325
.forEach { (jcMethod, uTestExprs) ->
325
- val valueModels = uTestExprs.map { expr -> processExpr(expr) }
326
+ // TODO usvm-sbft-merge: it can be .map { expr -> processExpr(expr) } here
327
+ // However, there's no special treatment for cases when <init> method occurs in a global mock
328
+ val valueModels = uTestExprs.map { _ -> UtCompositeModel (
329
+ id= idGenerator.createId(),
330
+ classId = voidClassId,
331
+ isMock = true ,
332
+ )
333
+ }
326
334
val methodInstrumentation = UtNewInstanceInstrumentation (
327
335
classId = jcMethod.enclosingClass.classId,
328
336
instances = valueModels,
You can’t perform that action at this time.
0 commit comments