I have a simple isSubClass
function which takes in a List of Class
es and a Throwable
and returns true if any of the Classes in the list is a subclass of the throwable and false otherwise.
Jacoco shows the function with a green mark saying all braches covered. Yet in the table, it shows Coverage being only 75%
What's wrong here?
private fun isSubClass(exceptionList: List<Class<out Throwable>>, throwable: Throwable): Boolean {
return exceptionList.any { throwable::class.isSubclassOf(it.kotlin) }
}