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§

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.
PatchCoverage
Covered / uncovered tally over a set of lines.

Enums§

DiffScope
Which files the project-delta and indirect-change sections report on.

Functions§

analyze
Runs the full attribution at the given DiffScope.