Skip to content

Commit 90cac71

Browse files
authored
Fix expected number of generated methods counter (#590)
1 parent 180553a commit 90cac71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utbot-framework/src/test/kotlin/org/utbot/framework/codegen/TestCodeGeneratorPipeline.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class TestCodeGeneratorPipeline(private val testFrameworkConfiguration: TestFram
107107
if (isParametrizedAndMocked) 0
108108
else when (parametrizedTestSource) {
109109
ParametrizedTestSource.DO_NOT_PARAMETRIZE -> testSets.sumOf { it.executions.size }
110-
ParametrizedTestSource.PARAMETRIZE -> testSets.size
110+
ParametrizedTestSource.PARAMETRIZE -> testSets.filter { it.executions.isNotEmpty() }.size
111111
}
112112

113113
// check for error in the generated file

0 commit comments

Comments
 (0)