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/io | |
| 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/io')
| -rw-r--r-- | crates/shirabe/tests/io/console_io_test.rs | 96 |
1 files changed, 75 insertions, 21 deletions
diff --git a/crates/shirabe/tests/io/console_io_test.rs b/crates/shirabe/tests/io/console_io_test.rs index 6715978..a931a8b 100644 --- a/crates/shirabe/tests/io/console_io_test.rs +++ b/crates/shirabe/tests/io/console_io_test.rs @@ -2,26 +2,80 @@ // These mock Symfony's InputInterface/OutputInterface/HelperSet (and QuestionHelper) to // drive ConsoleIO; those console abstractions are not ported. -macro_rules! stub { - ($name:ident) => { - #[test] - #[ignore = "mocks Symfony Input/Output/HelperSet to drive ConsoleIO; not ported"] - fn $name() { - todo!() - } - }; +#[test] +#[ignore = "mocks Symfony Input/Output/HelperSet to drive ConsoleIO; not ported"] +fn test_is_interactive() { + todo!() } -stub!(test_is_interactive); -stub!(test_write); -stub!(test_write_error); -stub!(test_write_with_multiple_line_string_when_debugging); -stub!(test_overwrite); -stub!(test_ask); -stub!(test_ask_confirmation); -stub!(test_ask_and_validate); -stub!(test_select); -stub!(test_set_and_get_authentication); -stub!(test_get_authentication_when_did_not_set); -stub!(test_has_authentication); -stub!(test_sanitize); +#[test] +#[ignore = "mocks Symfony Input/Output/HelperSet to drive ConsoleIO; not ported"] +fn test_write() { + todo!() +} + +#[test] +#[ignore = "mocks Symfony Input/Output/HelperSet to drive ConsoleIO; not ported"] +fn test_write_error() { + todo!() +} + +#[test] +#[ignore = "mocks Symfony Input/Output/HelperSet to drive ConsoleIO; not ported"] +fn test_write_with_multiple_line_string_when_debugging() { + todo!() +} + +#[test] +#[ignore = "mocks Symfony Input/Output/HelperSet to drive ConsoleIO; not ported"] +fn test_overwrite() { + todo!() +} + +#[test] +#[ignore = "mocks Symfony Input/Output/HelperSet to drive ConsoleIO; not ported"] +fn test_ask() { + todo!() +} + +#[test] +#[ignore = "mocks Symfony Input/Output/HelperSet to drive ConsoleIO; not ported"] +fn test_ask_confirmation() { + todo!() +} + +#[test] +#[ignore = "mocks Symfony Input/Output/HelperSet to drive ConsoleIO; not ported"] +fn test_ask_and_validate() { + todo!() +} + +#[test] +#[ignore = "mocks Symfony Input/Output/HelperSet to drive ConsoleIO; not ported"] +fn test_select() { + todo!() +} + +#[test] +#[ignore = "mocks Symfony Input/Output/HelperSet to drive ConsoleIO; not ported"] +fn test_set_and_get_authentication() { + todo!() +} + +#[test] +#[ignore = "mocks Symfony Input/Output/HelperSet to drive ConsoleIO; not ported"] +fn test_get_authentication_when_did_not_set() { + todo!() +} + +#[test] +#[ignore = "mocks Symfony Input/Output/HelperSet to drive ConsoleIO; not ported"] +fn test_has_authentication() { + todo!() +} + +#[test] +#[ignore = "mocks Symfony Input/Output/HelperSet to drive ConsoleIO; not ported"] +fn test_sanitize() { + todo!() +} |
