Expand description
One versioned view of a run, shared by every gate, export and report.
A threshold check, a changed-line check, an LCOV export and an HTML report all have to agree about what a run measured. Deriving that four times is how a gate and a report come to disagree about the same run, so it is derived once, here, from the same core that produced the run’s own summary.
The view keeps applicability separate from the numbers. A percentage cannot distinguish “nothing was uncovered” from “nothing was measured”, and a gate that treats those alike reports success for a run that proved nothing.
Structs§
- Blocker
- Why a run cannot be gated at all, regardless of its numbers.
- Branch
Record - One alternative of one branch, in the shape every export format wants: which decision it belongs to and whether it was taken.
- File
View - Floor
- A percentage floor, held in parts per million so a fractional target is compared exactly rather than through a float.
- Function
Record - Location
- Metric
View - RunView
- Violation
Enums§
- Applicability
- Whether a metric can be judged at all, before any number is compared.
- Metric
- The structural metrics a floor can be set on.
- Outcome
Constants§
Functions§
- build
- Build the shared view from a run’s coverage view.
- check
- Judge a run against percentage floors.
- parse_
percentage - Parse a percentage into parts per million, rejecting anything that is not a plain number between 0 and 100.