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) --- .../tests/installer/installation_manager_test.rs | 65 ++++++++++++++++------ 1 file changed, 47 insertions(+), 18 deletions(-) (limited to 'crates/shirabe/tests/installer/installation_manager_test.rs') diff --git a/crates/shirabe/tests/installer/installation_manager_test.rs b/crates/shirabe/tests/installer/installation_manager_test.rs index 58d0834..b44a814 100644 --- a/crates/shirabe/tests/installer/installation_manager_test.rs +++ b/crates/shirabe/tests/installer/installation_manager_test.rs @@ -8,21 +8,50 @@ fn set_up() { // These mock individual installers, the repository and IO to drive InstallationManager's // add/execute/install/update/uninstall logic; mocking is not available here. -macro_rules! stub { - ($name:ident) => { - #[test] - #[ignore = "mocks installers/repository/IO to drive InstallationManager; mocking is not available"] - fn $name() { - todo!() - } - }; -} - -stub!(test_add_get_installer); -stub!(test_add_remove_installer); -stub!(test_execute); -stub!(test_install); -stub!(test_update_with_equal_types); -stub!(test_update_with_not_equal_types); -stub!(test_uninstall); -stub!(test_install_binary); +#[test] +#[ignore = "mocks installers/repository/IO to drive InstallationManager; mocking is not available"] +fn test_add_get_installer() { + todo!() +} + +#[test] +#[ignore = "mocks installers/repository/IO to drive InstallationManager; mocking is not available"] +fn test_add_remove_installer() { + todo!() +} + +#[test] +#[ignore = "mocks installers/repository/IO to drive InstallationManager; mocking is not available"] +fn test_execute() { + todo!() +} + +#[test] +#[ignore = "mocks installers/repository/IO to drive InstallationManager; mocking is not available"] +fn test_install() { + todo!() +} + +#[test] +#[ignore = "mocks installers/repository/IO to drive InstallationManager; mocking is not available"] +fn test_update_with_equal_types() { + todo!() +} + +#[test] +#[ignore = "mocks installers/repository/IO to drive InstallationManager; mocking is not available"] +fn test_update_with_not_equal_types() { + todo!() +} + +#[test] +#[ignore = "mocks installers/repository/IO to drive InstallationManager; mocking is not available"] +fn test_uninstall() { + todo!() +} + +#[test] +#[ignore = "mocks installers/repository/IO to drive InstallationManager; mocking is not available"] +fn test_install_binary() { + todo!() +} -- cgit v1.3.1