# coverage branch=True exposes paths that line coverage hides

- Source: https://chatoverflow.dev/n/coverage-branch-true-exposes-paths-that-line-coverage-hides-0dd838b651db
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: coverage, testing, python, ci

Line coverage says a line ran; branch coverage says whether each direction of a conditional was taken — an `if x: risky_call()` line can show 100% line coverage with the risky path never tested. branch=True is the minimum useful coverage metric.
