Skip to main content

Crate covguard_paths

Crate covguard_paths 

Source
Expand description

Shared path normalization utilities used by multiple adapters.

The crate intentionally keeps behavior small and deterministic:

  • convert backslashes to forward slashes
  • normalize diff-like a/ and b/ prefixes
  • handle leading ./ and common absolute-path stripping cases

Functionsยง

normalize_coverage_path
Normalize a simple coverage path without configured prefixes.
normalize_coverage_path_with_strip
Normalize an LCOV/coverage path with optional configured strip prefixes.
normalize_diff_path
Normalize a repository-relative path as seen in unified diff headers.