I wrote a when condition for seal object and implement test for all cases, but Jacoco doesn't show coverage for the last case.
ex:
Code
when (index) {
is Index.First -> instayWifi.clear()
is Index.Second -> instayWifi.setUpInStayWifiCredential()
}
Test
whenSampleCoverrage.apply(Index.Second)
verify(instayWifi).setUpInStayWifiCredential()
whenSampleCoverrage.apply(Index.First)
verify(instayWifi).clear()
In the coverrage result, it doesn't show coverage for last case

JaCoCo version: 0.8.1
Operating system: MacOS
Tool integration: AndroidStudio/Gradle/Java/Kotlin
Expected behaviour
The last case in when should show coverage after call testing.
Actual behaviour
The last case in when never show coverage after call testing.
I wrote a
whencondition forsealobject and implement test for all cases, but Jacoco doesn't show coverage for the last case.ex:
Code
Test
In the coverrage result, it doesn't show coverage for last case

JaCoCo version: 0.8.1
Operating system: MacOS
Tool integration: AndroidStudio/Gradle/Java/Kotlin
Expected behaviour
The last case in when should show coverage after call testing.
Actual behaviour
The last case in when never show coverage after call testing.