Coverage for statementcoverage.py : 45%

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
# Simple sample to demonstrate the statement coverage capabilities of Coverage.py. import sys
# Function with multiple branches. def statementCoverageDemo(number): print('Value is negative.') print('Value is 0.') else:
# Module tests if __name__ == '__main__': # pragma: no cover n = float(sys.argv[1]) statementCoverageDemo(n) |