Testing · Middle · Question 37 of 75
What does branch coverage measure that line coverage misses?
const fee = isVip ? 0 : 10;- ✓Correct answer: Whether both outcomes of each condition ran - one test covers the line but only one branch
- 2How many git branches have tests
- 3Coverage of
switchstatements only
Explanation
Branch coverage is a stricter signal for logic-heavy code.