Skip to main content

evaluate

Function evaluate 

Source
pub fn evaluate(
    lcov_text: &str,
    manifest_path: Option<&Path>,
    gated_packages: &[String],
) -> Result<EvaluatedReport, CoverageGateError>
Expand description

Evaluate lcov_text (a cargo-llvm-cov lcov tracefile) against the workspace anchored at manifest_path and return the resolved EvaluatedReport.

gated_packages restricts the operation to a named subset; when empty, every workspace member is in scope.

ยงErrors

Returns a CoverageGateError when the tracefile does not parse, workspace discovery fails, an unknown package appears in gated_packages, or a configured min-lines-percent value is outside [0.0, 100.0]. The error message identifies which case occurred; callers usually just propagate it.