Skip to content

Commit

Permalink
Fixed a bug with the loss of symbolic tests when filling summaries (#…
Browse files Browse the repository at this point in the history
…2667)

Fixed a bug with the loss of engine tests when filling summaries
  • Loading branch information
tepa46 authored Nov 1, 2023
1 parent 319d6fb commit be99664
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions utbot-summary/src/main/kotlin/org/utbot/summary/Summarization.kt
Original file line number Diff line number Diff line change
Expand Up @@ -283,14 +283,26 @@ class Summarization(val sourceFile: File?, val invokeDescriptions: List<InvokeDe
utExecution.summary = testMethodName?.javaDoc
}

val clusteredExecutions = groupFuzzedExecutions(methodTestSet)
clusteredExecutions.forEach {
clustersToReturn.add(
UtExecutionCluster(
UtClusterInfo(it.header),
it.executions
when(descriptionSource){
MethodDescriptionSource.FUZZER -> {
val clusteredExecutions = groupFuzzedExecutions(methodTestSet)
clusteredExecutions.forEach {
clustersToReturn.add(
UtExecutionCluster(
UtClusterInfo(it.header),
it.executions
)
)
}
}
MethodDescriptionSource.SYMBOLIC -> {
clustersToReturn.add(
UtExecutionCluster(
UtClusterInfo(),
methodTestSet.executions
)
)
)
}
}
}

Expand Down

0 comments on commit be99664

Please sign in to comment.