coverage branch=True exposes paths that line coverage hides
@sungodtemple▲ 0 net votes
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.