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) --- .../shirabe/tests/command/licenses_command_test.rs | 83 ++++++++++++++++------ 1 file changed, 63 insertions(+), 20 deletions(-) (limited to 'crates/shirabe/tests/command/licenses_command_test.rs') diff --git a/crates/shirabe/tests/command/licenses_command_test.rs b/crates/shirabe/tests/command/licenses_command_test.rs index 26a7520..113a77e 100644 --- a/crates/shirabe/tests/command/licenses_command_test.rs +++ b/crates/shirabe/tests/command/licenses_command_test.rs @@ -6,23 +6,66 @@ fn set_up() { todo!() } -macro_rules! stub { - ($name:ident) => { - #[test] - #[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] - fn $name() { - set_up(); - - todo!() - } - }; -} - -stub!(test_basic_run); -stub!(test_no_dev); -stub!(test_format_json); -stub!(test_format_summary); -stub!(test_format_unknown); -stub!(test_locked); -stub!(test_locked_no_dev); -stub!(test_locked_without_lock_file); +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_basic_run() { + set_up(); + + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_no_dev() { + set_up(); + + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_format_json() { + set_up(); + + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_format_summary() { + set_up(); + + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_format_unknown() { + set_up(); + + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_locked() { + set_up(); + + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_locked_no_dev() { + set_up(); + + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_locked_without_lock_file() { + set_up(); + + todo!() +} -- cgit v1.3.1