You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have a class with a companion object. Both class and companion object have 1 function each. The validation rule is set to minValue = 20. The class function has test, but the companion object does not. When I run koverVerify, I get an error.
Errors Rule violated: lines covered percentage for class 'tat.mukhutdinov.moduleB.b1.HelperB1$Companion' is 0.000000, but expected minimum is 20
Expected behavior
Verify should complete successfully since total class coverage is 66.7%
Reproducer
package tat.mukhutdinov.moduleB.b1
class HelperB1 {
fun sort(a: Int, b: Int, c: Int): List<Int> =
listOf(a, b, c).sorted()
companion object {
fun foo() {
println("foo")
}
}
}
Describe the bug
I have a class with a companion object. Both class and companion object have 1 function each. The validation rule is set to
minValue = 20
. The class function has test, but the companion object does not. When I runkoverVerify
, I get an error.Errors
Rule violated: lines covered percentage for class 'tat.mukhutdinov.moduleB.b1.HelperB1$Companion' is 0.000000, but expected minimum is 20
Expected behavior
Verify should complete successfully since total class coverage is 66.7%
Reproducer
Environment
The text was updated successfully, but these errors were encountered: