Skip to main content

Module analysis

Module analysis 

Source
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:line list 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§

AppliedMarker
One region that actually applied, for the visibility note.
CoverageDiff
The full attribution result.
FileDelta
Per-file project coverage delta (requires a baseline report).
FilePatch
Patch coverage for a single file.
IndirectChange
A line whose coverage status flipped without its content changing.
Markers
The source markers found on each side of the comparison.
PatchCoverage
Covered / uncovered tally over a set of lines.

Enums§

DiffScope
Which files the project-delta and indirect-change sections report on.
MarkerSide
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 tolerate source markers.