You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 306aba4
Browse filesBrowse the repository at this point in the historyBrowse files
crates/socket-patch-cli/tests/composer_e2e_common/mod.rs 394 audit-cli-tests cbbbdb9 2026-11-02 - make fixture_composer_json, TRANSPORT_ATTEMPTS private; move copy_dir_recursive to common (T64; docker_e2e_vendor_composer includes the module only for it); delete e2e_vendor_composer_build `fn composer` forwarder; required() truthiness differs (T50); ~10 comment lines
121
+
crates/socket-patch-cli/tests/contract_gradle_codes.rs 176 audit-cli-tests cbbbdb9 2026-11-02 - clean; merge with contract_paid_required into one contract binary (C31)
122
+
crates/socket-patch-cli/tests/contract_paid_required.rs 59 audit-cli-tests cbbbdb9 2026-11-02 - delete get_emits_the_paid_required_envelope_status L43-59 (greps source for Status::PaidRequired; behaviour pinned by get_failure_paths/get_invariants); drop bare #982 + history comment; fold into a contract binary
123
+
crates/socket-patch-cli/tests/crawl_fd_limit_e2e.rs 300 audit-cli-tests cbbbdb9 2026-11-02 - scan() L151-191 hand-scrubs SOCKET_* and keeps ambient SOCKET_NO_CONFIG, no SOCKET_NO_UPDATE_CHECK: use hermetic::command (12-fd macOS cell has 1 fd slack); hoist ample-JSON parse (L220-225, L262-267); ~12 history comment lines
crates/socket-patch-cli/tests/docker_e2e_vendor_pypi_pm.rs 963 audit-cli-tests cbbbdb9 2026-11-02 - pass __GHSA__/__CVE__ through STAGE1_VENDOR_COMMON, delete eval wrappers L159-160, L363-364 and Rust replace L911-919; move poetry/pdm/pipenv VEX legs host-side on vex_e2e_common (pdm L437-440 never checks status); RED probes L202-205, L403-406, L579-582 should grep the reason; stale --offline doc L14-15; ~25 comment lines (T63)
139
+
crates/socket-patch-cli/tests/docker_vendor_common/mod.rs 322 audit-cli-tests cbbbdb9 2026-11-02 - delete dead run_in_image L203-205 (hidden by allow(dead_code)); make cov_docker_args private; json_assert_fns L313-321 greps JSON in-container, assert on host via envelope.rs; Maven-only m2 case in run_with_fixture L162-167 → caller env; pass SOCKET_TELEMETRY_DISABLED once via -e (18 stage exports); see T60
140
+
crates/socket-patch-cli/tests/e2e_bun_lockb.rs 2068 audit-cli-tests cbbbdb9 2026-11-02 - drop dead _target params of frozen/mock_api + L1348 match; inline frozen/installed_target; split production_scoped_rollback (hidden behind env in native_binary_alias_and_transitive L1328-1336); --offline stripped (T61); cli_code bypasses prepare_command (L101-120, inline L1109-1116); bundled skip L1165-1175 derived from CLI output; envelope::all_codes for .to_string().contains ×6
141
+
crates/socket-patch-cli/tests/e2e_cargo.rs 761 audit-cli-tests cbbbdb9 2026-11-02 - duplicate operands !contains("No packages found") L204, L269; vex checked by contains("not_affected") L692-698, no exit check L716-723; serde_json::from_str ×4 → envelope::output_envelope; manifest_pruned L313-321 → rollback_json::manifest_removed; fake_registry_crate vs cargo_lock_source::stage_registry_copy (drifted); locks via cargo_e2e_matrix::write_lock; ~30 comment lines
142
+
crates/socket-patch-cli/tests/e2e_composer.rs 312 audit-cli-tests cbbbdb9 2026-11-02 - start_proxy/assert_proxy_served_scans/run copied from e2e_cargo/maven/nuget (T64); delete !contains("No packages found") L202-205, L260-263; third test string-matches batch body L305-311, parse it; drop essay comments L166-177, L189-196, L236-239, L251-254 + banners; #463 history L267
143
+
crates/socket-patch-cli/tests/e2e_composer_vendor_dir_hints.rs 148 audit-cli-tests cbbbdb9 2026-11-02 - use hermetic::scrub_extra(Extra::Composer) not env_remove(COMPOSER_VENDOR_DIR) L99 (COMPOSER_HOME leaks); include common/hermetic.rs only (24 of 26 tests are common selftests, executed); fix vendor() doc L96 (3-tuple, --offline stripped, T61); share psr/log LOCK/ORIGINAL/PATCHED with version_identity; drop #658 narration
Copy file name to clipboardExpand all lines: doc/05-tests.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
## Part 5
2
2
3
-
_Last checked against main @ cbbbdb9 on 2026-11-02 by audit-core._
3
+
_Last checked against main @ cbbbdb9 on 2026-11-02 by audit-cli-tests._
4
4
5
5
Tests:Fake tests (asserting on their own mocks, recomputing expected values with the code under test, unable to fail, claiming more than they check), mock overuse where a tempdir or a real install is cheap, sentence-matching assertions, duplicate tests, and real coverage gaps. Per-directory tallies and the fixes that landed.
6
6
@@ -101,4 +101,9 @@ _Last checked against main @ cbbbdb9 on 2026-11-02 by audit-core._
101
101
- Can't fail: `save_and_clear_covers_every_bound_global_env_var` iterates the list it checks; `hermetic::HOSTILE_SEEDS` seed and remove the same list {{T59}}; the redirect test's "forbidden" mock in `cli_scan_silent` is outranked by the prebuilt mount (executed).
- Scaffolding: dead `stderr_chatter` filter ×11 and `has_command`/`sha256_hex` copies {{T55}}; 21 `common` selftests re-run in ~104 binaries {{T58}}.
104
+
-**Tally for `tests/docker_*`, `composer_e2e_common`, `contract_*`, `crawl_fd_limit_e2e`, `e2e_bun_lockb`, `e2e_cargo`, `e2e_composer*` (25 files, 14.7K lines, audit-cli-tests 2026-11-02 05:00Z): about 45 fake or weak tests.**
105
+
- Prove less than they claim: 8 of 9 docker agent chains serve a zero `beforeHash` and `apply --force`, so only the force path runs {{T62}}; 49 `vendor`/`repair --offline` calls in 16 suites run online because `prepare_command` strips the flag {{T61}}; `binary_shared_bundled_record_hosted_pin_is_managed` skips on the CLI output it tests; pypi `uv_tool…_full_apply_chain` never applies; the vendor_maven TAMPER probe only logs on Maven ≥ 3.9.2.
106
+
- Can't fail: `npm_test_infrastructure_smoke` asserts its own wiremock; deno/pypi/sbt script tests assert their own generated strings; `contract_paid_required` greps the source for a variant; e2e_cargo's `!a && !a` duplicate operand.
-**Coverage gaps:** a lockfile-only calm skip and a genuine miss serialize identically (`skipped`/`package_not_installed`), and an apply no-matching-variant miss emits no event, so the JSON tests can't check either (executed; C13); no offline round-trip test of the cargo matrix's `Cargo.lock` codec.
0 commit comments