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/util/git_test.rs | 61 +++++++++++++++++++++++++---------- 1 file changed, 44 insertions(+), 17 deletions(-) (limited to 'crates/shirabe/tests/util/git_test.rs') diff --git a/crates/shirabe/tests/util/git_test.rs b/crates/shirabe/tests/util/git_test.rs index 4802180..a78ae88 100644 --- a/crates/shirabe/tests/util/git_test.rs +++ b/crates/shirabe/tests/util/git_test.rs @@ -9,20 +9,47 @@ fn set_up() { todo!() } -macro_rules! stub { - ($name:ident) => { - #[test] - #[ignore = "mocks IO/Config/ProcessExecutor to drive Git; mocking is not available"] - fn $name() { - todo!() - } - }; -} - -stub!(test_run_command_public_git_hub_repository_not_initial_clone); -stub!(test_run_command_private_git_hub_repository_not_initial_clone_not_interactive_without_authentication); -stub!(test_run_command_private_git_hub_repository_not_initial_clone_not_interactive_with_authentication); -stub!(test_run_command_private_bitbucket_repository_not_initial_clone_not_interactive_with_authentication); -stub!(test_run_command_private_bitbucket_repository_not_initial_clone_interactive_with_oauth); -stub!(test_sync_mirror_sanitizes_url_after_initial_clone); -stub!(test_sync_mirror_sanitizes_url_even_after_failed_update); +#[test] +#[ignore = "mocks IO/Config/ProcessExecutor to drive Git; mocking is not available"] +fn test_run_command_public_git_hub_repository_not_initial_clone() { + todo!() +} + +#[test] +#[ignore = "mocks IO/Config/ProcessExecutor to drive Git; mocking is not available"] +fn test_run_command_private_git_hub_repository_not_initial_clone_not_interactive_without_authentication() + { + todo!() +} + +#[test] +#[ignore = "mocks IO/Config/ProcessExecutor to drive Git; mocking is not available"] +fn test_run_command_private_git_hub_repository_not_initial_clone_not_interactive_with_authentication() + { + todo!() +} + +#[test] +#[ignore = "mocks IO/Config/ProcessExecutor to drive Git; mocking is not available"] +fn test_run_command_private_bitbucket_repository_not_initial_clone_not_interactive_with_authentication() + { + todo!() +} + +#[test] +#[ignore = "mocks IO/Config/ProcessExecutor to drive Git; mocking is not available"] +fn test_run_command_private_bitbucket_repository_not_initial_clone_interactive_with_oauth() { + todo!() +} + +#[test] +#[ignore = "mocks IO/Config/ProcessExecutor to drive Git; mocking is not available"] +fn test_sync_mirror_sanitizes_url_after_initial_clone() { + todo!() +} + +#[test] +#[ignore = "mocks IO/Config/ProcessExecutor to drive Git; mocking is not available"] +fn test_sync_mirror_sanitizes_url_even_after_failed_update() { + todo!() +} -- cgit v1.3.1