diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-21 13:11:49 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-21 13:11:49 +0900 |
| commit | f0f5f084c883dc4f5b6e61603e82cd1c2092fd9d (patch) | |
| tree | a8b91efea7f17e61a8d0d9a82604d3ed964010a7 /crates/shirabe/tests/util/process_executor_test.rs | |
| parent | b1571202200e4dc630202928f5ff78959273c7ec (diff) | |
| download | php-shirabe-f0f5f084c883dc4f5b6e61603e82cd1c2092fd9d.tar.gz php-shirabe-f0f5f084c883dc4f5b6e61603e82cd1c2092fd9d.tar.zst php-shirabe-f0f5f084c883dc4f5b6e61603e82cd1c2092fd9d.zip | |
test(tests): expand stub macros into plain test functions
The per-file stub!/encode_stub!/etc. macros generated #[ignore]d test
functions but obscured the individual test bodies. Expanding them inline
removes the macro indirection so future ports can fill in each function
directly.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/util/process_executor_test.rs')
| -rw-r--r-- | crates/shirabe/tests/util/process_executor_test.rs | 82 |
1 files changed, 63 insertions, 19 deletions
diff --git a/crates/shirabe/tests/util/process_executor_test.rs b/crates/shirabe/tests/util/process_executor_test.rs index bfc6e0c..88449f1 100644 --- a/crates/shirabe/tests/util/process_executor_test.rs +++ b/crates/shirabe/tests/util/process_executor_test.rs @@ -3,24 +3,68 @@ // These run real subprocesses (capturing output/stderr/timeout) and assert ProcessExecutor's // password hiding, line splitting and argument escaping; the subprocess execution and mocked // IO are not ported. -macro_rules! stub { - ($name:ident) => { - #[test] - #[ignore = "not yet ported (runs subprocesses / mocks IO; argument-escaping and split helpers included)"] - fn $name() { - todo!() - } - }; +#[test] +#[ignore = "not yet ported (runs subprocesses / mocks IO; argument-escaping and split helpers included)"] +fn test_execute_captures_output() { + todo!() } -stub!(test_execute_captures_output); -stub!(test_execute_outputs_if_not_captured); -stub!(test_use_io_is_not_null_and_if_not_captured); -stub!(test_execute_captures_stderr); -stub!(test_timeout); -stub!(test_hide_passwords); -stub!(test_doesnt_hide_ports); -stub!(test_split_lines); -stub!(test_console_io_does_not_format_symfony_console_style); -stub!(test_execute_async_cancel); -stub!(test_escape_argument); +#[test] +#[ignore = "not yet ported (runs subprocesses / mocks IO; argument-escaping and split helpers included)"] +fn test_execute_outputs_if_not_captured() { + todo!() +} + +#[test] +#[ignore = "not yet ported (runs subprocesses / mocks IO; argument-escaping and split helpers included)"] +fn test_use_io_is_not_null_and_if_not_captured() { + todo!() +} + +#[test] +#[ignore = "not yet ported (runs subprocesses / mocks IO; argument-escaping and split helpers included)"] +fn test_execute_captures_stderr() { + todo!() +} + +#[test] +#[ignore = "not yet ported (runs subprocesses / mocks IO; argument-escaping and split helpers included)"] +fn test_timeout() { + todo!() +} + +#[test] +#[ignore = "not yet ported (runs subprocesses / mocks IO; argument-escaping and split helpers included)"] +fn test_hide_passwords() { + todo!() +} + +#[test] +#[ignore = "not yet ported (runs subprocesses / mocks IO; argument-escaping and split helpers included)"] +fn test_doesnt_hide_ports() { + todo!() +} + +#[test] +#[ignore = "not yet ported (runs subprocesses / mocks IO; argument-escaping and split helpers included)"] +fn test_split_lines() { + todo!() +} + +#[test] +#[ignore = "not yet ported (runs subprocesses / mocks IO; argument-escaping and split helpers included)"] +fn test_console_io_does_not_format_symfony_console_style() { + todo!() +} + +#[test] +#[ignore = "not yet ported (runs subprocesses / mocks IO; argument-escaping and split helpers included)"] +fn test_execute_async_cancel() { + todo!() +} + +#[test] +#[ignore = "not yet ported (runs subprocesses / mocks IO; argument-escaping and split helpers included)"] +fn test_escape_argument() { + todo!() +} |
