Skip to content

Commit 6d12b80

Browse files
committed
Commit Message
1 parent a697273 commit 6d12b80

File tree

3 files changed

+0
-29
lines changed

3 files changed

+0
-29
lines changed

utbot-framework/src/main/kotlin/org/utbot/framework/codegen/domain/Domain.kt

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -728,20 +728,3 @@ object SpringBoot : DependencyInjectionFramework(
728728
id = "spring-boot",
729729
displayName = "Spring Boot"
730730
)
731-
732-
/**
733-
* Extended id of [UtModel], unique for whole test set.
734-
*
735-
* Allows distinguishing models from different executions and test sets,
736-
* even if they have the same value of `UtModel.id` that is allowed.
737-
*/
738-
data class ModelId private constructor(
739-
private val id: Int?,
740-
private val executionId: Int,
741-
private val testSetId: Int,
742-
) {
743-
companion object {
744-
fun create(model: UtModel, executionId: Int = -1, testSetId: Int = -1) = ModelId(model.idOrNull(), executionId, testSetId)
745-
}
746-
}
747-

utbot-framework/src/main/kotlin/org/utbot/framework/codegen/domain/context/CgContext.kt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@ import org.utbot.framework.codegen.domain.models.CgTestMethod
1515
import org.utbot.framework.codegen.domain.models.CgThisInstance
1616
import org.utbot.framework.codegen.domain.models.CgValue
1717
import org.utbot.framework.codegen.domain.models.CgVariable
18-
import java.util.IdentityHashMap
1918
import kotlinx.collections.immutable.PersistentList
2019
import kotlinx.collections.immutable.PersistentMap
2120
import kotlinx.collections.immutable.PersistentSet
2221
import kotlinx.collections.immutable.persistentListOf
2322
import kotlinx.collections.immutable.persistentMapOf
2423
import kotlinx.collections.immutable.persistentSetOf
25-
import org.utbot.framework.codegen.domain.ModelId
2624
import org.utbot.framework.codegen.domain.ProjectType
2725
import org.utbot.framework.codegen.domain.models.CgMethodTestSet
2826
import org.utbot.framework.codegen.domain.builtin.TestClassUtilMethodProvider
@@ -235,12 +233,6 @@ interface CgContextOwner {
235233
*/
236234
var successfulExecutionsModels: List<UtModel>
237235

238-
/**
239-
* Gives a unique identifier to model in test set.
240-
* Determines which execution current model belongs to.
241-
*/
242-
var modelIds: MutableMap<UtModel, ModelId>
243-
244236
fun block(init: () -> Unit): Block {
245237
val prevBlock = currentBlock
246238
return try {
@@ -516,8 +508,6 @@ class CgContext(
516508
override lateinit var actual: CgVariable
517509
override lateinit var successfulExecutionsModels: List<UtModel>
518510

519-
override var modelIds: MutableMap<UtModel, ModelId> = mutableMapOf()
520-
521511
/**
522512
* This property cannot be accessed outside of test class file scope
523513
* (i.e. outside of [CgContextOwner.withTestClassFileScope]).
@@ -616,7 +606,6 @@ class CgContext(
616606
testMethods.clear()
617607
requiredUtilMethods.clear()
618608
valueByTestMethodInfo.clear()
619-
modelIds.clear()
620609
mockFrameworkUsed = false
621610
}
622611

utbot-js/src/main/kotlin/framework/codegen/model/constructor/tree/JsCgVariableConstructor.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import framework.api.js.util.jsDoubleClassId
99
import framework.api.js.util.jsNumberClassId
1010
import framework.api.js.util.jsStringClassId
1111
import framework.api.js.util.jsUndefinedClassId
12-
import org.utbot.framework.codegen.domain.ModelId
1312
import org.utbot.framework.codegen.domain.context.CgContext
1413
import org.utbot.framework.codegen.domain.models.CgAllocateArray
1514
import org.utbot.framework.codegen.domain.models.CgArrayInitializer

0 commit comments

Comments
 (0)