Skip to main content

Crate covguard_adapters_coverage

Crate covguard_adapters_coverage 

Source
Expand description

LCOV coverage file parser for covguard.

This crate provides parsing and merging of LCOV format coverage files, producing a normalized coverage map that can be used by the domain layer.

Structs§

LcovCoverageProvider
Default LCOV coverage provider backed by this crate’s parser and merger.

Enums§

LcovError
Errors that can occur while parsing LCOV files.

Functions§

get_hits
Get the hit count for a specific file and line.
merge_coverage
Merge multiple coverage maps into one.
normalize_path
Normalize a file path to repo-relative format.
normalize_path_with_strip
Normalize a file path with optional prefix stripping.
parse_lcov
Parse an LCOV format string into a coverage map.
parse_lcov_with_strip
Parse an LCOV format string into a coverage map with optional prefix stripping.

Type Aliases§

CoverageMap
A map of file paths to their line coverage data.