Expand description
Diff-scoped coverage floor: the thresholds unit coverage enforces whole-tree,
measured over only the lines <base>...HEAD added or modified. Each language pairs
a measure* that shells out to its tool with a pure evaluate_patch* over the diff.
Functions§
- changed_
lines - The new-side lines each file gained in
repo’s<base>...HEADmerge-base diff, keyed byrepo-relative path. Pinned against the caller’s git config —core.quotepath=off,--no-ext-diff, forceda//b/prefixes — so [new_side_path]’sb/strip holds. - measure
- Diff-scoped Python coverage floor: measure
thresholdsover the<base>...HEADchanged.pylines instead of the whole tree.omitis thecoverage-rule exemptions; an exempt file’s changed lines drop out of the ratio with it. - measure_
line_ exempt - Diff-free Python coverage floor with line-scoped exemptions: measure
thresholdsover every measured line except theexempt_lines.omitis the whole-filecoverageexemptions. Runs only whenexempt_linesis non-empty. - measure_
line_ exempt_ rust - Rust twin of
measure_line_exempt: thecargo llvm-covregions/lines metrics over every measured line except theexempt_lines.ignoreis the whole-file exemptions. - measure_
line_ exempt_ typescript - TypeScript twin of
measure_line_exempt: the four vitest metrics over every measured line except theexempt_lines.excludeis the whole-filecoverageexemptions. - measure_
rust - Diff-scoped Rust coverage floor: the
cargo llvm-covregions/lines metrics measured over the<base>...HEADchanged.rslines instead of the whole tree.ignoreis thecoverage-rule exemptions; an exempt file’s lines drop out of the ratios with it. - measure_
typescript - Diff-scoped TypeScript coverage floor: the four vitest metrics measured over the
<base>...HEADchanged.ts/.tsx/.mts/.ctslines instead of the whole tree.excludeis thecoverage-rule exemptions; an excluded file’s lines drop out with it.