Skip to content

Commit

Permalink
fix: Ignore the case of identifiers when searching the corresponding …
Browse files Browse the repository at this point in the history
…source file for test and coverage reports
  • Loading branch information
felipebz committed Aug 14, 2024
1 parent 7340759 commit 6c1dc9f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ class ObjectLocator {
}

fun findMainObject(identifier: String, vararg types: AstNodeType): MappedObject? {
return mappedObjects.find { it.isMain && it.identifier == identifier && it.objectType in types }
return mappedObjects.find { it.isMain && it.identifier.equals(identifier, ignoreCase = true) && it.objectType in types }
}

fun findTestObject(identifier: String, vararg types: AstNodeType): MappedObject? {
return mappedObjects.find { it.isTest && it.identifier == identifier && it.objectType in types }
return mappedObjects.find { it.isTest && it.identifier.equals(identifier, ignoreCase = true) && it.objectType in types }
}
}

0 comments on commit 6c1dc9f

Please sign in to comment.