Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

# Condition coverage sample 

 

def conditionCoverageDemo(a, b): 

4 ↛ exitline 4 didn't return from function 'conditionCoverageDemo', because the condition on line 4 was never false if a>0 or b>y: 

print('Both a and b are greater than 0.') 

 

 

# Module tests 

if __name__ == '__main__': # pragma: no cover 

conditionCoverageDemo(1, 1)