Expand description
Coverage attribution: combine a head per-line report with a DiffModel
(and optionally a baseline report) into the metrics a reviewer wants.
- Patch coverage — of the lines this diff added, how many are covered. Needs only the head report + diff; immune to line-shift because added lines exist only in head.
- Uncovered new lines — the explicit
file:linelist of added lines that are not covered (the actionable output). - Project delta — per-file and total before/after coverage (baseline).
- Indirect changes — lines whose coverage flipped without their content changing, found by aligning base↔head through the diff (baseline).
Structs§
- Applied
Marker - One region that actually applied, for the visibility note.
- Coverage
Diff - The full attribution result.
- File
Delta - Per-file project coverage delta (requires a baseline report).
- File
Patch - Patch coverage for a single file.
- Indirect
Change - A line whose coverage status flipped without its content changing.
- Markers
- The source markers found on each side of the comparison.
- Patch
Coverage - Covered / uncovered tally over a set of lines.
Enums§
- Diff
Scope - Which files the project-delta and indirect-change sections report on.
- Marker
Side - Which revision a reported region was observed on.
Functions§
- analyze
- Runs the full attribution at the given
DiffScope, with no source markers. - analyze_
with_ markers - Runs the full attribution, applying
toleratesource markers.