From 4db28b8d5ec61d78a4f97436ed8f7cf8203c996e Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 10 Nov 2009 22:39:07 -0500 Subject: Latest tweaks --- doc/branch.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/branch.rst b/doc/branch.rst index 32f7b923..19be019a 100644 --- a/doc/branch.rst +++ b/doc/branch.rst @@ -20,8 +20,9 @@ For example:: In this code, the if on line 2 could branch to either line 3 or line 4. Statement coverage would show all lines of the function as executed. But the -if is always true, so line 2 never jumps to line 4. In this code, that -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 +2. Branch coverage would flag this code as not fully covered because of the missing jump from line 2 to line 4. -- cgit v1.2.1