Module

utils.lcov

LCOV coverage data to dict converter.

Stdlib-only parser for LCOV.infofiles produced by lcov, geninfo, nyc/istanbul, go tool cover, and similar tools.

Functions

lcov_to_dict 1 dict[str, Any]
Parse an LCOV file and return a dict matching coverage-report.md's schema.
def lcov_to_dict(path: str | Path) -> dict[str, Any]
Parameters
Name Type Description
path str | Path

Path to the LCOV.infofile.

Returns
dict[str, Any]