Skip to main content Module coverage Copy item path Source FileCoverage Per-file coverage metrics parsed from a coverage report. aggregate_line_coverage Compute a weighted-average line coverage percentage across all files that have coverage data.
Returns None if no files have coverage data or if total lines_found is zero. lookup_coverage Attempt to match a FileRecord’s relative_path against the coverage map. parse_cobertura Parse a Cobertura XML coverage file (coverage.xml) into a per-file coverage map. parse_coverage_auto Auto-detect coverage file format from path extension and content, then dispatch to the
appropriate parser. parse_coverage_py Parse a coverage.py native JSON report (coverage json) into a per-file coverage map. parse_istanbul Parse an Istanbul/NYC coverage-summary.json file into a per-file coverage map. parse_jacoco Parse a JaCoCo XML report (jacoco.xml) into a per-file coverage map. parse_lcov Parse an LCOV .info file and return a map from source file path to coverage metrics. resolve_coverage_file Resolve a coverage file path from the environment variable SLOC_COVERAGE_FILE or the
provided config path, normalising to an absolute PathBuf.