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/library_installer_test.rs | 72 ++++++++++++++++------ 1 file changed, 53 insertions(+), 19 deletions(-) (limited to 'crates/shirabe/tests/installer/library_installer_test.rs') diff --git a/crates/shirabe/tests/installer/library_installer_test.rs b/crates/shirabe/tests/installer/library_installer_test.rs index 1262970..2182962 100644 --- a/crates/shirabe/tests/installer/library_installer_test.rs +++ b/crates/shirabe/tests/installer/library_installer_test.rs @@ -22,22 +22,56 @@ impl Drop for TearDown { // These construct a LibraryInstaller over a temp dir with a mocked IO/Filesystem/repository // and mocked packages to drive install/update/uninstall and path resolution. -macro_rules! stub { - ($name:ident) => { - #[test] - #[ignore = "mocks IO/Filesystem/repository and packages to drive LibraryInstaller; mocking is not available"] - fn $name() { - todo!() - } - }; -} - -stub!(test_installer_creation_should_not_create_vendor_directory); -stub!(test_installer_creation_should_not_create_bin_directory); -stub!(test_is_installed); -stub!(test_install); -stub!(test_update); -stub!(test_uninstall); -stub!(test_get_install_path_without_target_dir); -stub!(test_get_install_path_with_target_dir); -stub!(test_ensure_binaries_installed); +#[test] +#[ignore = "mocks IO/Filesystem/repository and packages to drive LibraryInstaller; mocking is not available"] +fn test_installer_creation_should_not_create_vendor_directory() { + todo!() +} + +#[test] +#[ignore = "mocks IO/Filesystem/repository and packages to drive LibraryInstaller; mocking is not available"] +fn test_installer_creation_should_not_create_bin_directory() { + todo!() +} + +#[test] +#[ignore = "mocks IO/Filesystem/repository and packages to drive LibraryInstaller; mocking is not available"] +fn test_is_installed() { + todo!() +} + +#[test] +#[ignore = "mocks IO/Filesystem/repository and packages to drive LibraryInstaller; mocking is not available"] +fn test_install() { + todo!() +} + +#[test] +#[ignore = "mocks IO/Filesystem/repository and packages to drive LibraryInstaller; mocking is not available"] +fn test_update() { + todo!() +} + +#[test] +#[ignore = "mocks IO/Filesystem/repository and packages to drive LibraryInstaller; mocking is not available"] +fn test_uninstall() { + todo!() +} + +#[test] +#[ignore = "mocks IO/Filesystem/repository and packages to drive LibraryInstaller; mocking is not available"] +fn test_get_install_path_without_target_dir() { + todo!() +} + +#[test] +#[ignore = "mocks IO/Filesystem/repository and packages to drive LibraryInstaller; mocking is not available"] +fn test_get_install_path_with_target_dir() { + todo!() +} + +#[test] +#[ignore = "mocks IO/Filesystem/repository and packages to drive LibraryInstaller; mocking is not available"] +fn test_ensure_binaries_installed() { + todo!() +} -- cgit v1.3.1