halofixer
JCHJava Community | Help. Code. Learn.
•Created by halofixer on 12/16/2024 in #java-help
Kotlin Branch Test coverage question
I have this line of code:
Test coverage is saying
1 out of 8 branches missed
. But how in the world are there eight branches here??? IMO there are only 4 branches:
1). house is null
2). house isn't null but family is null
3). neither house nor family is null and family doesn't contain Steve
4). neither house nor family is null and family contains Steve15 replies