Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed rebase errors
  • Loading branch information
Damtev committed Oct 7, 2022
commit f5d558a57a9457765ba6e9572126bde9ac07aaca
Original file line number Diff line number Diff line change
Expand Up @@ -1244,12 +1244,6 @@ internal class CgMethodConstructor(val context: CgContext) : CgContextOwner by c
) {
thisInstance[executable](*methodArguments.toTypedArray())
}

// We need to clear scope of created variables
// because after invocation of MUT some expressions could be changed.
// For example, fields of object that were null could be assigned to some new objects
// and previously created variables do not reflect these changes.
createdFromExpressionVariables.clear()
}
else -> {} // TODO: check this specific case
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import org.utbot.common.appendHtmlLine
import org.utbot.framework.codegen.model.constructor.CgMethodTestSet
import org.utbot.framework.codegen.model.tree.CgTestMethod
import org.utbot.framework.codegen.model.tree.CgTestMethodType
import org.utbot.framework.codegen.model.tree.CgTestMethodType.*
import org.utbot.framework.plugin.api.ExecutableId
import org.utbot.framework.plugin.api.util.kClass
import kotlin.reflect.KClass
Expand Down Expand Up @@ -57,11 +58,11 @@ data class TestsGenerationReport(

testMethods.forEach {
when (it.type) {
CgTestMethodType.SUCCESSFUL -> updateExecutions(it, successfulExecutions)
CgTestMethodType.FAILING -> updateExecutions(it, failedExecutions)
CgTestMethodType.TIMEOUT -> updateExecutions(it, timeoutExecutions)
CgTestMethodType.CRASH -> updateExecutions(it, crashExecutions)
CgTestMethodType.PARAMETRIZED -> {
SUCCESSFUL, PASSED_EXCEPTION -> updateExecutions(it, successfulExecutions)
FAILING -> updateExecutions(it, failedExecutions)
TIMEOUT -> updateExecutions(it, timeoutExecutions)
CRASH -> updateExecutions(it, crashExecutions)
PARAMETRIZED -> {
// Parametrized tests are not supported in the tests report yet
// TODO JIRA:1507
}
Expand Down