File tree Expand file tree Collapse file tree
utbot-framework/src/main/kotlin/org/utbot/framework/codegen/tree Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1361,7 +1361,11 @@ open class CgMethodConstructor(val context: CgContext) : CgContextOwner by conte
13611361 // TODO: remove this line when SAT-1273 is completed
13621362 execution.displayName = execution.displayName?.let { " ${executableId.name} : $it " }
13631363 testMethod(testMethodName, execution.displayName) {
1364- val statics = currentExecution!! .stateBefore.statics
1364+ // Enum constants are static, but there is no need to store and recover value for them
1365+ val statics = currentExecution!! .stateBefore
1366+ .statics
1367+ .filterNot { it.value is UtEnumConstantModel }
1368+
13651369 rememberInitialStaticFields(statics)
13661370 val stateAnalyzer = ExecutionStateAnalyzer (execution)
13671371 val modificationInfo = stateAnalyzer.findModifiedFields()
You can’t perform that action at this time.
0 commit comments