From bb6254e2007c809d76fde09f06d276f50bba84ed Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 24 Jun 2026 00:49:13 +0900 Subject: test(io): add IOMock test helper porting Composer's IOMock Port composer/tests/Composer/Test/Mock/IOMock.php as a BufferIO-backed mock with expects()/assert_complete(), authentication logging, and a Drop guard mirroring TestCase::getIOMock + tearDown. This is the infrastructure many IO-consuming tests need; wiring existing #[ignore] tests onto it is a follow-up, gated on making BufferIO::get_output's look-behind regex regex-crate compatible. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/tests/io/main.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/shirabe/tests/io/main.rs') diff --git a/crates/shirabe/tests/io/main.rs b/crates/shirabe/tests/io/main.rs index a3148fd..25174e9 100644 --- a/crates/shirabe/tests/io/main.rs +++ b/crates/shirabe/tests/io/main.rs @@ -1,3 +1,6 @@ +#[path = "../common/io_mock.rs"] +mod io_mock; + mod buffer_io_test; mod console_io_test; mod null_io_test; -- cgit v1.3.1