Skip to content

Commit a11c3e9

Browse files
authored
Fix test generation for nested classes (#2684)
1 parent 3400a96 commit a11c3e9

File tree

1 file changed

+2
-2
lines changed
  • utbot-junit-contest/src/main/kotlin/org/utbot/contest/usvm

1 file changed

+2
-2
lines changed

utbot-junit-contest/src/main/kotlin/org/utbot/contest/usvm/ContestUsvm.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,14 @@ fun runUsvmGeneration(
161161
options = UMachineOptions(timeoutMs = symbolicBudgetPerMethod)
162162
)
163163
}.use { machine ->
164-
val jcClass = jcDbContainer.cp.findClass(cut.fqn)
165-
166164
statsForClass.methodsCount = filteredMethods.size
167165

168166
// nothing to process further
169167
if (filteredMethods.isEmpty()) return@runBlocking statsForClass
170168

171169
for (method in filteredMethods) {
170+
val jcClass = jcDbContainer.cp.findClass(method.classId.name)
171+
172172
val jcTypedMethod = jcClass.toType().declaredMethods.firstOrNull {
173173
it.name == method.name && it.method.jcdbSignature == when (method) {
174174
is ConstructorId -> method.constructor.toJcdbSignature()

0 commit comments

Comments
 (0)