-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Milestone
Description
For the following src/Example.kt
fun testBool(p: Boolean) = when (p) {
true -> 1
false -> 2
}
fun main() {
testBool(true)
testBool(false)
}
execution of
kotlin-2.0.21/bin/kotlinc src -d classes
java -javaagent:jacoco-0.8.13-SNAPSHOT/lib/jacocoagent.jar -cp classes:kotlin-2.0.21/lib/kotlin-stdlib.jar ExampleKt
java -jar jacoco-0.8.13-SNAPSHOT/lib/jacococli.jar report jacoco.exec --classfiles classes --sourcefiles src --html report
Expected behaviour
All lines of when expression should be fully covered as both boolean values was passed
Environment
- JaCoCo version: actual
masterbranch built locally - Kotlin 2.0.21
- Operating system: MacOS 15
- Tool integration: CLI
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
In Progress

