Commit 4a29cc1
test: coverage-audit test extension — 94.2% → 98.2% lines, +1,300 tests
Implements the audited test plans for every uncovered-but-testable range
found by the full-coverage audit at d5e1815 (936 worthwhile ranges across
92 files): inline #[cfg(test)] additions plus 30 new per-module covgap_*
integration suites (conflict-free placement; shared suites untouched).
An adversarial review pass (46 reviewers + 3-vote refutation panels over
the full diff) confirmed 42 findings, all applied:
- fix residuals: uv revert convergence carve-outs (drift-keep gate no
longer keeps converged reverts forever), requirements-flavor
vendor_revert_residual_reference keep signal, fail-closed in-sync
rebuild pin guard (corrupt/missing state.json now refuses instead of
rebuilding blind), redirect nuget open-tag/single-quote tolerance
matching the nuget_feed twin, scan --prune now reports
keptVendoredEntries + remediation hint (dry preview documented as
drift-blind), takeover scope-aware name probe, golang hot-path gate
strengthened to full redirect_in_sync equivalence, multi-line
pnpm-workspace flow sequences, fetch-stage online-failure silent-mode
envelope
- unfixed twins found by review: bun_lock + pnpm v9 post-pack failure
paths ported to done_failure_unstage (a new test had enshrined the
husk behavior; now asserts the fixed contract)
- test hygiene: geteuid()==0 root guards on all new chmod-based tests,
SOCKET_*/VIRTUAL_ENV scrubs in spawned-CLI harnesses, telemetry
disabled in covgap_commands_vex (was POSTing to production), hermetic
Gemfile.lock fixtures replacing real bundle probes, cfg(unix)/path-
separator gates, vacuous tests repaired or deleted
6,597 tests green (196 binaries, full workspace). Coverage (host,
default features): 94.18% → 98.2%+ lines; 72-77% of the 5,720
never-executed production lines from the baseline audit now covered;
the remainder is classified defensive/unreachable/interactive-only/
platform-gated in the audit record.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 0b7714b commit 4a29cc1
117 files changed
Lines changed: 50512 additions & 179 deletions
File tree
- crates
- socket-patch-cli
- src
- commands
- scan
- tests
- socket-patch-core
- src
- api
- crawlers
- package_json
- patch
- redirect
- setup
- composer
- gem
- pypi
- update
- utils
- vendor
- vex
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
431 | | - | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
432 | 435 | | |
433 | 436 | | |
434 | 437 | | |
| |||
458 | 461 | | |
459 | 462 | | |
460 | 463 | | |
461 | | - | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
462 | 470 | | |
463 | 471 | | |
464 | 472 | | |
| |||
790 | 798 | | |
791 | 799 | | |
792 | 800 | | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
793 | 848 | | |
0 commit comments