Skip to content

docs: fix stale collect.rs module summary for in-shim extraction - #48

Open
cargo-affected-bot wants to merge 2 commits into
mainfrom
docs/collect-module-doc-in-shim-extraction
Open

docs: fix stale collect.rs module summary for in-shim extraction#48
cargo-affected-bot wants to merge 2 commits into
mainfrom
docs/collect-module-doc-in-shim-extraction

Conversation

@cargo-affected-bot

Copy link
Copy Markdown
Collaborator

What

Correct the collect.rs module-level doc comment, which still described the pre-#46 coverage model.

Why

#46 moved coverage extraction out of collect and into the runner shim: each test's shim now spawns and waits for the test binary (no longer execs), extracts that test's coverage in-process, and writes a per-test result file; collect just reads those files after nextest exits. The commit updated the detailed "Approach" section of the module doc (and the per-item doc comments) to match, but missed the summary paragraph at the top of the file, which still read:

… points LLVM_PROFILE_FILE at a per-test subdirectory before execing the real test binary. After nextest finishes we walk those subdirectories, merge profraws, export coverage, and write per-(test, file) line ranges to SQLite.

That directly contradicts the "Approach" section a few lines below it (and the actual code in src/shim.rs, which spawns-and-waits and extracts per-test). This updates the summary to describe the in-shim extraction so the two halves of the doc agree.

Testing

Docs-only change — no regression test is feasible (it's a comment). cargo build and cargo clippy --all-targets pass locally.

#46 moved coverage extraction into the runner shim (spawn-and-wait +
in-process extract, per-test result files read back by collect) and
updated the module's Approach section, but left the top-of-file summary
describing the old execvp + post-run walk/merge/export model. Rewrite the
summary to match the Approach section and src/shim.rs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…oc-in-shim-extraction

# Conflicts:
#	src/collect.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant