Expand description
Pure domain evaluation logic for covguard.
This crate implements the core policy evaluation with no side effects. It takes changed line ranges and coverage data, applies a policy, and produces findings with a verdict.
Structs§
- Eval
Input - Input for policy evaluation.
- Eval
Output - Output from policy evaluation.
- Metrics
- Metrics from the evaluation.
- Policy
- Policy configuration for coverage evaluation.
Enums§
- FailOn
- Determines when the evaluation should fail.
- Missing
Behavior - How to handle missing coverage data.
- Scope
- Scope of lines to evaluate.
Functions§
- calc_
coverage_ pct - Calculate coverage percentage.
- evaluate
- Evaluate changed lines against coverage data under the given policy.
- has_
ignore_ directive - Check if a line contains a
covguard: ignoredirective. - sort_
findings - Sort findings deterministically.