We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d7bfde commit fa96793Copy full SHA for fa96793
1 file changed
utbot-framework/src/main/kotlin/org/utbot/sarif/SarifReport.kt
@@ -254,10 +254,12 @@ class SarifReport(
254
return null
255
256
// searching needed method call
257
+ val publicMethodCall = "$methodName("
258
+ val privateMethodCall = Regex("""$methodName.*\.invoke\(""") // using reflection
259
val methodCallLineNumber = testsBodyLines
260
.drop(testMethodStartsAt + 1) // for search after it
261
.indexOfFirst { line ->
- line.contains("$methodName(")
262
+ line.contains(publicMethodCall) || line.contains(privateMethodCall)
263
}
264
if (methodCallLineNumber == -1)
265
0 commit comments