Skip to content

Commit 4db28b8

Browse files
committed
Latest tweaks
1 parent 5915058 commit 4db28b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/branch.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ For example::
2020
2121
In this code, the if on line 2 could branch to either line 3 or line 4.
2222
Statement coverage would show all lines of the function as executed. But the
23-
if is always true, so line 2 never jumps to line 4. In this code, that
24-
path would cause an error.
23+
if is always true, so line 2 never jumps to line 4. Even though line 4 is
24+
executed, coverage.py knows that it was never because of a branch from line
25+
2.
2526

2627
Branch coverage would flag this code as not fully covered because of the
2728
missing jump from line 2 to line 4.

0 commit comments

Comments
 (0)