class documentation

class LineCoverageReporter(AbstractReporter): (source)

View In Hierarchy

Exact line coverage reporter.

This reporter writes a JSON dictionary with one field 'lines' to the file 'coverage.json' in the specified report directory. The value of that field is a dictionary which associates to each source file's absolute pathname the list of line numbers that belong to typed functions in that file.

Method __init__ Undocumented
Method on​_file Undocumented
Method on​_finish Undocumented
Instance Variable lines​_covered Undocumented

Inherited from AbstractReporter:

Instance Variable output​_dir Undocumented
def __init__(self, reports, output_dir): (source)

Undocumented

Parameters
reports:ReportsUndocumented
output​_dir:strUndocumented
def on_file(self, tree, modules, type_map, options): (source)

Undocumented

Parameters
tree:MypyFileUndocumented
modules:Dict[str, MypyFile]Undocumented
type​_map:Dict[Expression, Type]Undocumented
options:OptionsUndocumented
def on_finish(self): (source)
lines_covered: Dict[str, List[int]] = (source)

Undocumented