Skip to main content

parse_coverage_auto

Function parse_coverage_auto 

Source
pub fn parse_coverage_auto(
    path: &Path,
    content: &str,
) -> HashMap<PathBuf, FileCoverage>
Expand description

Auto-detect coverage file format from path extension and content, then dispatch to the appropriate parser.

.xml is sniffed for Cobertura vs JaCoCo; .json is sniffed for coverage.py native JSON vs Istanbul json-summary. Falls back to LCOV for unknown extensions.