Expand description
§dev-coverage
Test coverage measurement and regression detection for Rust. Part
of the dev-* verification suite.
Wraps cargo-llvm-cov (the modern Rust coverage standard) and
emits results as dev-report::Report. Detects coverage regressions
against a stored baseline so AI agents and CI gates can decide
whether a PR drops coverage too far.
§Quick example
use dev_coverage::{CoverageRun, CoverageThreshold};
let run = CoverageRun::new("my-crate", "0.1.0");
let result = run.execute().unwrap();
let threshold = CoverageThreshold::min_line_pct(80.0);
let check = result.into_check_result(threshold);§Status
Pre-1.0. The 0.9.0 release defines the shape of the API; the
actual cargo-llvm-cov integration lands in 0.9.1.
Structs§
- Coverage
Result - Result of a coverage run.
- Coverage
Run - Configuration for a coverage run.
Enums§
- Coverage
Error - Errors that can arise during a coverage run.
- Coverage
Threshold - Threshold defining the minimum acceptable coverage.