Return dict where keys are line numbers in the line number table.
(filename)
| 374 | return d |
| 375 | |
| 376 | def _find_executable_linenos(filename): |
| 377 | """Return dict where keys are line numbers in the line number table.""" |
| 378 | try: |
| 379 | with tokenize.open(filename) as f: |
| 380 | prog = f.read() |
| 381 | encoding = f.encoding |
| 382 | except OSError as err: |
| 383 | print(("Not printing coverage data for %r: %s" |
| 384 | % (filename, err)), file=sys.stderr) |
| 385 | return {} |
| 386 | code = compile(prog, filename, "exec") |
| 387 | strs = _find_strings(filename, encoding) |
| 388 | return _find_lines(code, strs) |
| 389 | |
| 390 | class Trace: |
| 391 | def __init__(self, count=1, trace=1, countfuncs=0, countcallers=0, |
no test coverage detected
searching dependent graphs…