Run count | Line n° | Code |
---|---|---|
1 | def main(): | |
1 | 2 | if False: |
► | 3 | pass # This is not executed |
4 | ||
5 | pass # This is executed. | |
6 | ||
26 | 7 | for i in range(25): |
25 | 8 | pass # This is executed 25 times |
9 | ||
► | 10 | import trace,sys |
► | 11 | tracer = trace.Trace(ignoredirs=[sys.prefix, sys.exec_prefix],trace=0,count=1,outfile=r'./coverage_dir/counts') |
► | 12 | tracer.run('main()') |
► | 13 | r = tracer.results() |
► | 14 | r.write_results(show_missing=True, coverdir=r'./coverage_dir') |