-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Milestone
Description
For the following src/Example.kt
enum class SingleEnum {
First
}
fun testEnum(p: SingleEnum) = when (p) {
SingleEnum.First -> 1
}
fun main() {
testEnum(SingleEnum.First)
}
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 single enum element 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

