We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5915058 commit 4db28b8Copy full SHA for 4db28b8
doc/branch.rst
@@ -20,8 +20,9 @@ For example::
20
21
In this code, the if on line 2 could branch to either line 3 or line 4.
22
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.
+if is always true, so line 2 never jumps to line 4. Even though line 4 is
+executed, coverage.py knows that it was never because of a branch from line
25
+2.
26
27
Branch coverage would flag this code as not fully covered because of the
28
missing jump from line 2 to line 4.
0 commit comments