chore(mutants): src/diff/** audit — 0 surviving (#35, module 1/6)#61
Merged
Conversation
…0 surviving First module of the v1.0 cargo-mutants audit (#35). The diff engine's unit + property tests fully cover the mutation surface: cargo mutants --in-place --no-shuffle --file 'src/diff/**' --timeout 60 19 mutants, 16 caught, 3 unviable, 0 surviving (0.0% rate) Documents the audit methodology in docs/src/internals/mutation-testing.md so the next release-cut run is reproducible, and so the per-module results can accumulate as more modules clear. Not wired into CI per the issue body (per-PR runtime is prohibitive).
Coverage reportLine coverage: 84.6% (10029 / 11851 lines) Full lcov report available as workflow artifact coverage-lcov: download from this run. v0.9.8 introduces this report; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First module of the v1.0 cargo-mutants audit. Per issue #35: one PR per module, target <10% surviving rate, not a CI gate.
src/diff/**
No test additions required. The existing diff-engine unit and property tests cover the mutation surface fully. The 3 unviable mutants are excluded from the surviving denominator because they produce code the compiler rejects.
What this PR adds
docs/src/internals/mutation-testing.md— methodology + reproduction recipe + audit log table (this will accumulate one entry per module as the rest of Run cargo-mutants audit on security-critical modules (v1.0 prep) #35 lands)docs/src/SUMMARY.md— link the new page under ProjectThe other 5 modules (
src/enrich/typosquat*,src/enrich/license.rs,src/enrich/maintainer.rs,src/baseline.rs,src/vex.rs) are running in a separate worktree and will land as follow-up PRs.Closes #35 partially (diff module). Issue stays open until all six modules report.