Skip to main content
Testing & QA Output Prediction Hard +35 XP

Coverage Metric

What does 80% branch coverage mean?

Testing & QARead-only
// Branch coverage: 80%

What is the output?

Show answer and explanation

Answer: 80% of if/else branches were executed

Branch coverage measures whether each branch of conditional logic (if/else, switch) has been tested. 80% means some branches were never executed.

Hint: Branches are the paths through conditionals.

What this challenge tests

Output Prediction in Testing & QA: coverage, metrics.

Related challenges