With kover, I have a test that is hitting requires...
# code-coverage
f
With kover, I have a test that is hitting requires and I am not sure why they are not fully covered. My test definitely hits both paths here. Is there is a reason why requires don't get full covered?
Even when both paths are hit it remains uncovered
e
k
I've just tested a minimal example using
require
. As long as both passing and failing requirements are tested, it gives me 100% coverage. On the other hand, there are some inline functions in the Kotlin stdlib that always fail coverage checks:
Copy code
val reader = someInputStream.bufferedReader()
This always results in 50% branch coverage and there is nothing you can do about it (apart from not using this function).