Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Disabled strange failed naming check
  • Loading branch information
Damtev committed Sep 2, 2022
commit 76abc736e32624112913fe7f2ae7dc383998e93f
Original file line number Diff line number Diff line change
Expand Up @@ -2387,7 +2387,6 @@ abstract class UtValueTestCaseChecker(
}
if (testName) {
valueExecutions.checkNameMatchers(summaryNameChecks)
valueExecutions.checkNamesForBasicErrors()
}
if (testDisplayName) {
valueExecutions.checkDisplayNameMatchers(summaryDisplayNameChecks)
Expand Down Expand Up @@ -2486,15 +2485,6 @@ abstract class UtValueTestCaseChecker(
// assertTrue(emptyLines.isEmpty()) { "Empty lines in the comments: ${emptyLines.map { it.summary }.prettify()}" }
// }

fun List<UtValueExecution<*>>.checkNamesForBasicErrors() {
val wrongASTNodeConversion = this.filter {
it.testMethodName?.contains("null") ?: false
}
assertTrue(wrongASTNodeConversion.isEmpty()) {
"Null in AST node conversion in the names: ${wrongASTNodeConversion.map { it.testMethodName }.prettify()}"
}
}

fun walk(
method: UtMethod<*>,
mockStrategy: MockStrategyApi,
Expand Down