You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val updatedExecutions = mutableListOf<UtExecution>()
75
76
val clustersToReturn = mutableListOf<UtExecutionCluster>()
76
77
78
+
// TODO: Now it excludes tests generated by Fuzzer, handle it properly, related to the https://github.com/UnitTestBot/UTBotJava/issues/428
79
+
val executionsProducedByFuzzer = getExecutionsWithEmptyPath(testCase)
80
+
81
+
if (executionsProducedByFuzzer.isNotEmpty()) {
82
+
executionsProducedByFuzzer.forEach {
83
+
logger.info {
84
+
"The path for test ${it.testMethodName}"+
85
+
"for method ${testCase.method.clazz.qualifiedName} is empty and summaries could not be generated."
86
+
}
87
+
}
88
+
89
+
clustersToReturn.add(
90
+
UtExecutionCluster(
91
+
UtClusterInfo(),
92
+
executionsProducedByFuzzer
93
+
)
94
+
)
95
+
}
96
+
77
97
// analyze
78
98
if (jimpleBody !=null&& sootToAST !=null) {
79
99
val methodUnderTest = jimpleBody.method
@@ -83,9 +103,9 @@ class Summarization(val sourceFile: File?, val invokeDescriptions: List<InvokeDe
83
103
for (clusterTraceTags in clusteredTags) {
84
104
val clusterHeader = clusterTraceTags.summary.takeIf { GENERATE_CLUSTER_COMMENTS }
85
105
val clusterContent =if (
86
-
GENERATE_CLUSTER_COMMENTS&& clusterTraceTags.isSuccessful //add only for successful executions
87
-
&& numberOfSuccessfulClusters >1//there is more than one successful execution
88
-
&& clusterTraceTags.traceTags.size >1//add if there is more than 1 execution
106
+
GENERATE_CLUSTER_COMMENTS&& clusterTraceTags.isSuccessful //add only for successful executions
107
+
&& numberOfSuccessfulClusters >1//there is more than one successful execution
108
+
&& clusterTraceTags.traceTags.size >1//add if there is more than 1 execution
val methodExecutions = testCase.executions.filter { it.path.isNotEmpty() } // TODO: Now it excludes tests generated by Fuzzer, handle it properly, related to the https://github.com/UnitTestBot/UTBotJava/issues/428
99
98
val clusters = mutableListOf<ExecutionCluster>()
100
99
val commentPostfix ="for method ${testCase.method.displayName}"
0 commit comments