From f0f5f084c883dc4f5b6e61603e82cd1c2092fd9d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 21 Jun 2026 13:11:49 +0900 Subject: 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) --- crates/shirabe/tests/io/console_io_test.rs | 100 ++++++++++++++++++++++------- 1 file changed, 77 insertions(+), 23 deletions(-) (limited to 'crates/shirabe/tests/io/console_io_test.rs') 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!() - } - }; -} - -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_is_interactive() { + todo!() +} + +#[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!() +} -- cgit v1.3.1