We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
Consider the following function:
inline fun flowTest(): Flow<Int> { return flow { for (i in range(1, 10)) { emit(i) } } }
and the following test:
@Test fun `flow test`() { runBlocking { flowTest().collect(::println) } }
Full coverage is expected, confirmed by the println output from the test. However, Kover reports coverage as missing for this.
Errors
Kover reports missing coverage
Expected behavior
Full coverage to be reported.
Reproducer
See code snippits above. This is a reproduction of an issue in this code: https://sonarcloud.io/component_measures?metric=new_coverage&selected=driessamyn_kapper%3Acoroutines%2Fsrc%2Fmain%2Fkotlin%2Fnet%2Fsamyn%2Fkapper%2Fcoroutines%2FKapperKotlinFlowQueryFun.kt&view=list&pullRequest=85&id=driessamyn_kapper
Environment
The text was updated successfully, but these errors were encountered:
Confirmed that using the Jacoco coverage library also misses this coverage
Sorry, something went wrong.
Recent versions of JaCoCo do not support inline functions. A future release contains the necessary changes.
shanshin
No branches or pull requests
Describe the bug
Consider the following function:
and the following test:
Full coverage is expected, confirmed by the println output from the test. However, Kover reports coverage as missing for this.
Errors
Kover reports missing coverage
Expected behavior
Full coverage to be reported.
Reproducer
See code snippits above.
This is a reproduction of an issue in this code: https://sonarcloud.io/component_measures?metric=new_coverage&selected=driessamyn_kapper%3Acoroutines%2Fsrc%2Fmain%2Fkotlin%2Fnet%2Fsamyn%2Fkapper%2Fcoroutines%2FKapperKotlinFlowQueryFun.kt&view=list&pullRequest=85&id=driessamyn_kapper
Environment
The text was updated successfully, but these errors were encountered: