Skip to content

Commit 288319d

Browse files
committed
Update the common test module's doc
The doc still said test files carry their own helper copies and could migrate later. That migration is now done. Assisted-by: Claude Code:claude-opus-5-5
1 parent c836c12 commit 288319d

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

  • crates/socket-patch-cli/tests/common

‎crates/socket-patch-cli/tests/common/mod.rs‎

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
//! Helpers shared across the e2e-safety test suites.
2-
//!
3-
//! The original e2e files (`e2e_npm.rs`, `e2e_pypi.rs`, `e2e_gem.rs`)
4-
//! each carry their own copy of the same `binary` / `run` /
5-
//! `assert_run_ok` / `git_sha256` helpers. Rather than refactor those
6-
//! files in this PR, this module is an additive landing place for the
7-
//! same surface plus the new helpers the safety suites need
8-
//! (synthetic manifest writers, pnpm runners, cargo runners). Existing
9-
//! suites can migrate in a follow-up.
1+
//! Helpers shared across the CLI test suites: the binary under test and
2+
//! the Git-blob hash oracle (`oracle`), `run` / `assert_run_ok`, and the
3+
//! synthetic manifest writers and package-manager runners the e2e suites
4+
//! need. Test files use these instead of private copies;
5+
//! `cli/shared_helper_copies.rs` enforces that for `binary` and
6+
//! `git_sha256` (#824).
107
//!
118
//! Each test file pulls this in with `#[path = "common/mod.rs"] mod common;`.
129
//!

0 commit comments

Comments
 (0)