Skip to content

Commit f79ee6c

Browse files
committed
Fix expected number of generated methods counter
1 parent a2883ee commit f79ee6c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

utbot-framework-api/src/main/kotlin/org/utbot/framework/plugin/api/Api.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ enum class MockStrategyApi(
10321032
// Get is mandatory because of the initialization order of the inheritors.
10331033
// Otherwise, in some cases we could get an incorrect value
10341034
companion object : CodeGenerationSettingBox {
1035-
override val defaultItem = OTHER_PACKAGES
1035+
override val defaultItem = NO_MOCKS
10361036
override val allItems: List<MockStrategyApi> = values().toList()
10371037
}
10381038
}

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)