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/command/init_command_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/command/init_command_test.rs')
| -rw-r--r-- | crates/shirabe/tests/command/init_command_test.rs | 131 |
1 files changed, 108 insertions, 23 deletions
diff --git a/crates/shirabe/tests/command/init_command_test.rs b/crates/shirabe/tests/command/init_command_test.rs index e7cda3e..043011d 100644 --- a/crates/shirabe/tests/command/init_command_test.rs +++ b/crates/shirabe/tests/command/init_command_test.rs @@ -10,29 +10,114 @@ fn set_up() { server_set("COMPOSER_DEFAULT_EMAIL", "john@example.com".to_string()); } -macro_rules! stub { - ($name:ident) => { - #[test] - #[ignore = "needs the ApplicationTester harness or reflection into protected InitCommand helpers"] - fn $name() { - set_up(); +#[test] +#[ignore = "needs the ApplicationTester harness or reflection into protected InitCommand helpers"] +fn test_parse_valid_author_string() { + set_up(); - todo!() - } - }; + todo!() } -stub!(test_parse_valid_author_string); -stub!(test_parse_empty_author_string); -stub!(test_parse_author_string_with_invalid_email); -stub!(test_namespace_from_valid_package_name); -stub!(test_namespace_from_invalid_package_name); -stub!(test_namespace_from_missing_package_name); -stub!(test_run_command); -stub!(test_run_command_invalid); -stub!(test_run_guess_name_from_dir_sanitizes_dir); -stub!(test_interactive_run); -stub!(test_format_authors); -stub!(test_get_git_config); -stub!(test_add_vendor_ignore); -stub!(test_has_vendor_ignore); +#[test] +#[ignore = "needs the ApplicationTester harness or reflection into protected InitCommand helpers"] +fn test_parse_empty_author_string() { + set_up(); + + todo!() +} + +#[test] +#[ignore = "needs the ApplicationTester harness or reflection into protected InitCommand helpers"] +fn test_parse_author_string_with_invalid_email() { + set_up(); + + todo!() +} + +#[test] +#[ignore = "needs the ApplicationTester harness or reflection into protected InitCommand helpers"] +fn test_namespace_from_valid_package_name() { + set_up(); + + todo!() +} + +#[test] +#[ignore = "needs the ApplicationTester harness or reflection into protected InitCommand helpers"] +fn test_namespace_from_invalid_package_name() { + set_up(); + + todo!() +} + +#[test] +#[ignore = "needs the ApplicationTester harness or reflection into protected InitCommand helpers"] +fn test_namespace_from_missing_package_name() { + set_up(); + + todo!() +} + +#[test] +#[ignore = "needs the ApplicationTester harness or reflection into protected InitCommand helpers"] +fn test_run_command() { + set_up(); + + todo!() +} + +#[test] +#[ignore = "needs the ApplicationTester harness or reflection into protected InitCommand helpers"] +fn test_run_command_invalid() { + set_up(); + + todo!() +} + +#[test] +#[ignore = "needs the ApplicationTester harness or reflection into protected InitCommand helpers"] +fn test_run_guess_name_from_dir_sanitizes_dir() { + set_up(); + + todo!() +} + +#[test] +#[ignore = "needs the ApplicationTester harness or reflection into protected InitCommand helpers"] +fn test_interactive_run() { + set_up(); + + todo!() +} + +#[test] +#[ignore = "needs the ApplicationTester harness or reflection into protected InitCommand helpers"] +fn test_format_authors() { + set_up(); + + todo!() +} + +#[test] +#[ignore = "needs the ApplicationTester harness or reflection into protected InitCommand helpers"] +fn test_get_git_config() { + set_up(); + + todo!() +} + +#[test] +#[ignore = "needs the ApplicationTester harness or reflection into protected InitCommand helpers"] +fn test_add_vendor_ignore() { + set_up(); + + todo!() +} + +#[test] +#[ignore = "needs the ApplicationTester harness or reflection into protected InitCommand helpers"] +fn test_has_vendor_ignore() { + set_up(); + + todo!() +} |
