See docs/agents-common/coverage.md for the base rules.
Generate the coverage report:
cargo llvm-cov --summary-only -- --test-threads=1For a line-level breakdown, open the HTML report:
cargo llvm-cov --open -- --test-threads=1Interpreting the report:
- The terminal summary shows per-file
Fns %. A file you touched must reach 100% for functions you added. - The HTML report highlights uncovered lines in red.
- Functions that are
#[cfg(test)]-only or compile-time-only (e.g.deriveimpls) are excluded automatically.
Checklist additions:
-
cargo llvm-cov --summary-only -- --test-threads=1shows 100% function coverage for every file you modified -
cargo test -- --test-threads=1passes with no failures (see build-and-test.md)