kotlinx-kover icon indicating copy to clipboard operation
kotlinx-kover copied to clipboard

Inline function with functional parameter covered partially

Open shanshin opened this issue 1 year ago • 5 comments

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 Screenshot 2024-06-10 at 17 17 41

Environment

  • IntelliJ agent 1.0.754

shanshin avatar Jun 10 '24 15:06 shanshin