Skip to content

chore(mutants): src/diff/** audit — 0 surviving (#35, module 1/6)#61

Merged
Metbcy merged 1 commit into
mainfrom
chore/mutants-audit-diff-35
Jun 1, 2026
Merged

chore(mutants): src/diff/** audit — 0 surviving (#35, module 1/6)#61
Metbcy merged 1 commit into
mainfrom
chore/mutants-audit-diff-35

Conversation

@Metbcy
Copy link
Copy Markdown
Owner

@Metbcy Metbcy commented Jun 1, 2026

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/**

cargo mutants --in-place --no-shuffle --file 'src/diff/**' --timeout 60
metric count
Total mutants 19
Caught 16
Unviable 3
Surviving 0
Surviving rate 0.0%

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

The 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.

…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).
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

Coverage report

Line 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; --fail-under-lines will be added once coverage is visible across 2–3 releases.

@Metbcy Metbcy merged commit b140c64 into main Jun 1, 2026
10 checks passed
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.

Run cargo-mutants audit on security-critical modules (v1.0 prep)

1 participant