Skip to main content

Crate covguard_domain

Crate covguard_domain 

Source
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§

EvalInput
Input for policy evaluation.
EvalOutput
Output from policy evaluation.
Metrics
Metrics from the evaluation.
Policy
Policy configuration for coverage evaluation.

Enums§

FailOn
Determines when the evaluation should fail.
MissingBehavior
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: ignore directive.
sort_findings
Sort findings deterministically.