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, a package selector is unknown, coverage metadata or target policy is invalid or ambiguous, a configured threshold is out of range, or required Rust target discovery or cfg queries fail. The error message identifies which case occurred; callers usually just propagate it.