Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Coverage gaps

Combined coverage · 786 selected test attempts

File target: 80% of instrumented lines. Every function needs execution or an accepted explanation.

CI would pass0 unresolved gaps0 file obligations · 0 function obligations

No unsatisfied file or function obligations.

Documented gaps — 7 accepted exceptions

Current workspace source notes. Accepted exceptions do not increase measured percentages.

src/authoring/progress.rs:221 #mod[tests]/impl[RecordingTerm/indicatif::TermLike]/fn[move_cursor_right] · zero execution · current and accepted

Current and accepted
This unit-test-only TermLike adapter records whole rendered lines.  Indicatif's authoring renderer does not request horizontal movement,  so this required no-op callback has no application input path.  The authoring PTY tests exercise the real terminal implementation.

src/authoring/progress.rs:231 #mod[tests]/impl[RecordingTerm/indicatif::TermLike]/fn[move_cursor_left] · zero execution · current and accepted

Current and accepted
TermLike requires this callback on the unit-test-only recorder.  The authoring renderer rewrites whole lines rather than moving  horizontally; no application input can select this no-op callback.  Real terminal output remains covered by the authoring PTY tests.

src/execution_coverage/progress.rs:120 #mod[tests]/impl[RecordingTerm/indicatif::TermLike]/fn[move_cursor_down] · zero execution · current and accepted

Current and accepted
This adapter is compiled only for unit tests. TermLike requires this  callback, but our fixed-width, single-line displays do not move down.  It is a no-op with no application behavior or untrusted-input path.  Real terminal drawing is exercised by the PTY integration test.

src/execution_coverage/progress.rs:129 #mod[tests]/impl[RecordingTerm/indicatif::TermLike]/fn[move_cursor_right] · zero execution · current and accepted

Current and accepted
This unit-test-only adapter must implement TermLike's horizontal  movement callback. Indicatif's single-line renderer never calls it;  the no-op does not participate in application behavior. The PTY  integration test exercises the actual terminal implementation.

src/execution_coverage/progress.rs:138 #mod[tests]/impl[RecordingTerm/indicatif::TermLike]/fn[move_cursor_left] · zero execution · current and accepted

Current and accepted
TermLike requires this callback on the unit-test-only adapter.  The fixed-width display tests request no horizontal cursor movement,  so this no-op has no application behavior to test. Real terminal  movement remains exercised through the PTY integration test.

src/execution_coverage/progress.rs:147 #mod[tests]/impl[RecordingTerm/indicatif::TermLike]/fn[write_line] · zero execution · current and accepted

Current and accepted
Indicatif renders through write_str on this unit-test-only adapter.  TermLike also requires write_line, whose only behavior delegates to  that covered recording path. No application input can select this  unused adapter callback; actual terminal output is tested on a PTY.

src/outline/profile.rs:113 #fn[whole_comment] · zero execution · current and accepted

Current and accepted
This callback fills the Profile interface for every non-Rust profile.  Those profiles all set hashes_comment to never, so Builder::encode skips  comment_prose for every source input; plain text does not use the grammar  encoder at all. Rust hashes doc comments through its separate doc_prose.  The fallback therefore has no reachable behavior in the supported profiles.  Comment prose for profiles that hash no comments: the whole text. 

Line coverage: 48855/49755 (98.2%) from the union of instrumented file-and-line locations.

Collect coverage and check CI policy

Collect Rust unit and integration test coverage with habeas coverage. For focused runs, forward nextest arguments with habeas coverage -- -E 'test(name)'. Run doctests separately with cargo test --doc --workspace.

For full verification, habeas test collects coverage for the whole workspace, then checks it. In CI, run habeas coverage -- --workspace and, after it succeeds, run habeas coverage-check as a separate step. Checking saved coverage runs no tests and calls no model; the static validation test needs no prior coverage.

Every first-party Rust file needs 80% instrumented-line coverage. Every function with zero execution or no measurement needs an accepted explanation, including functions excluded by features or platform. Ordinary partly covered functions need no exception when their file meets its target.

Use a standard habeas:coverage citation with a substantive prose justification in fenced commentary or a Rust doc comment. A file-root citation excuses only the file threshold; a function citation excuses only that function. Author its independent citation review with habeas author; only a current accepted review permits an exception. No project declaration or special configuration is needed. Citations remain applicable across build configurations and can remain after coverage improves. Exceptions never increase measured percentages.

Coverage is disposable build output in the Cargo target directory. The index combines each test’s latest compatible attempt; source changes invalidate its contribution. Building this book reads saved reports and never runs tests.

The overview focuses on undocumented coverage gaps and accepted explanations. Expand a file to inspect its uncovered obligations, measurements, and explanation status.