Skip to content

Commit be99664

Browse files
authored
Fixed a bug with the loss of symbolic tests when filling summaries (#2667)
Fixed a bug with the loss of engine tests when filling summaries
1 parent 319d6fb commit be99664

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

utbot-summary/src/main/kotlin/org/utbot/summary/Summarization.kt

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -283,14 +283,26 @@ class Summarization(val sourceFile: File?, val invokeDescriptions: List<InvokeDe
283283
utExecution.summary = testMethodName?.javaDoc
284284
}
285285

286-
val clusteredExecutions = groupFuzzedExecutions(methodTestSet)
287-
clusteredExecutions.forEach {
288-
clustersToReturn.add(
289-
UtExecutionCluster(
290-
UtClusterInfo(it.header),
291-
it.executions
286+
when(descriptionSource){
287+
MethodDescriptionSource.FUZZER -> {
288+
val clusteredExecutions = groupFuzzedExecutions(methodTestSet)
289+
clusteredExecutions.forEach {
290+
clustersToReturn.add(
291+
UtExecutionCluster(
292+
UtClusterInfo(it.header),
293+
it.executions
294+
)
295+
)
296+
}
297+
}
298+
MethodDescriptionSource.SYMBOLIC -> {
299+
clustersToReturn.add(
300+
UtExecutionCluster(
301+
UtClusterInfo(),
302+
methodTestSet.executions
303+
)
292304
)
293-
)
305+
}
294306
}
295307
}
296308

0 commit comments

Comments
 (0)