Introduce workaround for back-end exception in the test cases parser code
This commit is contained in:
+3
-3
@@ -54,9 +54,9 @@ fun parseTestCases(testFiles: TestFiles): SpecTestCasesSet {
|
|||||||
val matcher = testCaseInfoPattern.matcher(fileContent)
|
val matcher = testCaseInfoPattern.matcher(fileContent)
|
||||||
var startFind = 0
|
var startFind = 0
|
||||||
|
|
||||||
if (!testCasesSet.byFiles.contains(filename)) {
|
testCasesSet.byFiles.computeIfAbsent(filename) {
|
||||||
testCasesSet.byFiles[filename] = mutableMapOf()
|
testCasesSet.byRanges.putIfAbsent(filename, TreeMap())
|
||||||
testCasesSet.byRanges[filename] = TreeMap()
|
mutableMapOf()
|
||||||
}
|
}
|
||||||
|
|
||||||
val testCasesOfFile = testCasesSet.byFiles[filename]!!
|
val testCasesOfFile = testCasesSet.byFiles[filename]!!
|
||||||
|
|||||||
Reference in New Issue
Block a user