Kotlin / kotlinx-kover

Apache License 2.0
1.36k stars 53 forks source link

'continue' or 'break' statements are not reported properly as invoked #694

Open oliviernotteghem opened 2 days ago

oliviernotteghem commented 2 days ago

Describe the bug 'continue' or 'break' statements, when hit, are reported as not invoked. See screenshot.

Expected behavior This should be marked as invoked.

Reproducer Presumably, this should happen on mixed source set module, with java code containing break or continue statement following code invoked by tests.

Reports Screenshot 2024-10-10 at 1 17 20 PM

Environment

oliviernotteghem commented 2 days ago

This is a regression. Issue doesn't happen with org.jetbrains.intellij.deps:intellij-coverage-agent:1.0.683 / mvn:org.jetbrains.kotlinx:kover-cli:jar:0.7.0-Beta