Closed
Description
Consider:
def foo(c1, c2):
if c1 or c2:
print("yes")
else:
print("no")
foo(True, False)
foo(False, False)
This gives 100% coverage, even with branch prediction.
$ coverage run --branch 1.py && coverage report
yes
no
Name Stmts Miss Branch BrPart Cover
-----------------------------------------
1.py 6 0 2 0 100%
However, the case where c2 is True is never tested.
Thoughts?