3 ms·
line coverage but also branch coverage. Every safe navigation operator used in "defensive" coding, ex. `foo?.bar` is actually another branch that needs to be co
by tubthumper8 3y ago
line coverage but also branch coverage. Every safe navigation operator used in "defensive" coding, ex. `foo?.bar` is actually another branch that needs to be covered if that's the metric people are using. All of those tests are unnecessary in a language where the type is known at compile-time.
- anarazel 3y agoMy experience with folks proudly proclaiming "100% coverage" is that it's typically "just" line coverage, even if you're obviously right.