kotlinx-kover
kotlinx-kover copied to clipboard
Inline function with functional parameter covered partially
Errors Some line covered partially
Expected behavior All lines should be fully covered (green)
Reproducer Source class
inline fun myInline(producer: () -> Int?) {
val value = producer()?.inc()
println(value)
}
Test
@Test
fun test() {
myInline { 41 }
myInline { null }
}
Reports
Environment
- IntelliJ agent
1.0.754