You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: utbot-spring-framework/src/main/kotlin/org/utbot/framework/codegen/tree/fieldmanager/CgAbstractClassFieldManager.kt
+14-3Lines changed: 14 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -45,10 +45,21 @@ abstract class CgAbstractClassFieldManager(context: CgContext) :
45
45
46
46
val baseVarName = constructBaseVarName(model)
47
47
48
-
// `withNameScope` is used to avoid saving names for sub-models of model
48
+
/*
49
+
* `withNameScope` is used to avoid saving names for sub-models of model.
50
+
*
51
+
* Different models from different executions may have the same id.
52
+
* Therefore, when creating a variable for a new class field and using existing `currentTestSetId` and `currentExecutionId`,
53
+
* field`s `model.wrap()` may match one of the values in `annotatedModels`.
54
+
* To avoid false matches when creating a variable for a new class field, `withTestSetIdScope(-1)` and `withExecutionIdScope(-1)` are used.
0 commit comments