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
Copy file name to clipboardexpand all lines: utbot-framework/src/main/kotlin/org/utbot/framework/codegen/model/constructor/tree/CgTestClassConstructor.kt
+3-3
Original file line number
Diff line number
Diff line change
@@ -179,8 +179,8 @@ internal class CgTestClassConstructor(val context: CgContext) :
179
179
for ((clusterSummary, executionIndices) in clustersInfo) {
180
180
val currentTestCaseTestMethods = mutableListOf<CgTestMethod>()
181
181
emptyLineIfNeeded()
182
-
val (checkedRange, needLimitExceedingComments) =if (executionIndices.last - executionIndices.first >UtSettings.maxTestsPerMethod) {
183
-
IntRange(executionIndices.first, executionIndices.first + (UtSettings.maxTestsPerMethod-1).coerceAtLeast(0)) to true
182
+
val (checkedRange, needLimitExceedingComments) =if (executionIndices.last - executionIndices.first >=UtSettings.maxTestsPerMethodInRegion) {
183
+
IntRange(executionIndices.first, executionIndices.first + (UtSettings.maxTestsPerMethodInRegion-1).coerceAtLeast(0)) to true
184
184
} else {
185
185
executionIndices to false
186
186
}
@@ -189,7 +189,7 @@ internal class CgTestClassConstructor(val context: CgContext) :
val comments =listOf("Actual number of generated tests (${executionIndices.last - executionIndices.first}) exceeds per-method limit (${UtSettings.maxTestsPerMethod})",
192
+
val comments =listOf("Actual number of generated tests (${executionIndices.last - executionIndices.first}) exceeds per-method limit (${UtSettings.maxTestsPerMethodInRegion})",
193
193
"The limit can be configured in '{HOME_DIR}/.utbot/settings.properties' with 'maxTestsPerMethod' property")
0 commit comments