Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a177d4c

Browse files
committedOct 7, 2022
Fixed rebase errors
1 parent 0c9e3c6 commit a177d4c

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed
 

‎utbot-framework/src/main/kotlin/org/utbot/framework/codegen/model/constructor/tree/CgMethodConstructor.kt

-6
Original file line numberDiff line numberDiff line change
@@ -1244,12 +1244,6 @@ internal class CgMethodConstructor(val context: CgContext) : CgContextOwner by c
12441244
) {
12451245
thisInstance[executable](*methodArguments.toTypedArray())
12461246
}
1247-
1248-
// We need to clear scope of created variables
1249-
// because after invocation of MUT some expressions could be changed.
1250-
// For example, fields of object that were null could be assigned to some new objects
1251-
// and previously created variables do not reflect these changes.
1252-
createdFromExpressionVariables.clear()
12531247
}
12541248
else -> {} // TODO: check this specific case
12551249
}

‎utbot-framework/src/main/kotlin/org/utbot/framework/codegen/model/constructor/tree/TestsGenerationReport.kt

+6-5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import org.utbot.common.appendHtmlLine
44
import org.utbot.framework.codegen.model.constructor.CgMethodTestSet
55
import org.utbot.framework.codegen.model.tree.CgTestMethod
66
import org.utbot.framework.codegen.model.tree.CgTestMethodType
7+
import org.utbot.framework.codegen.model.tree.CgTestMethodType.*
78
import org.utbot.framework.plugin.api.ExecutableId
89
import org.utbot.framework.plugin.api.util.kClass
910
import kotlin.reflect.KClass
@@ -57,11 +58,11 @@ data class TestsGenerationReport(
5758

5859
testMethods.forEach {
5960
when (it.type) {
60-
CgTestMethodType.SUCCESSFUL -> updateExecutions(it, successfulExecutions)
61-
CgTestMethodType.FAILING -> updateExecutions(it, failedExecutions)
62-
CgTestMethodType.TIMEOUT -> updateExecutions(it, timeoutExecutions)
63-
CgTestMethodType.CRASH -> updateExecutions(it, crashExecutions)
64-
CgTestMethodType.PARAMETRIZED -> {
61+
SUCCESSFUL, PASSED_EXCEPTION -> updateExecutions(it, successfulExecutions)
62+
FAILING -> updateExecutions(it, failedExecutions)
63+
TIMEOUT -> updateExecutions(it, timeoutExecutions)
64+
CRASH -> updateExecutions(it, crashExecutions)
65+
PARAMETRIZED -> {
6566
// Parametrized tests are not supported in the tests report yet
6667
// TODO JIRA:1507
6768
}

0 commit comments

Comments
 (0)
Please sign in to comment.