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: Reports, output_dir: str): (source)

Undocumented

def on_file(self, tree: MypyFile, modules: dict[str, MypyFile], type_map: dict[Expression, Type], options: Options): (source)

Undocumented

def on_finish(self): (source)
lines_covered: dict[str, list[int]] = (source)

Undocumented