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
5050import  org.utbot.framework.plugin.api.UtStaticMethodInstrumentation 
5151import  org.utbot.framework.plugin.api.util.classClassId 
5252import  org.utbot.framework.plugin.api.util.objectClassId 
53+ import  org.utbot.framework.plugin.api.util.voidClassId 
5354import  org.utbot.fuzzer.IdGenerator 
5455
5556class  UTestInst2UtModelConverter (
@@ -322,7 +323,14 @@ class UTestInst2UtModelConverter(
322323
323324                initMethodExprs
324325                    .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+                         }
326334                        val  methodInstrumentation =  UtNewInstanceInstrumentation (
327335                            classId =  jcMethod.enclosingClass.classId,
328336                            instances =  valueModels,
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments