From 25f96cab45f5da4fba2ef0486a0b0bc8f7ca87b0 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 21 Jun 2026 05:09:56 +0900 Subject: test: port downloader/installer/io/json/event-dispatcher/functional stubs All ignored: these mock IO/HttpDownloader (curl)/ProcessExecutor/installers, use ZipArchive/JsonManipulator todo!()s, need Symfony console or schema validation, reflect into ClassLoader, or run end-to-end install/functional fixtures. Wires up the event_dispatcher test target. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../tests/installer/installation_manager_test.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (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 66d89ed..0ec4651 100644 --- a/crates/shirabe/tests/installer/installation_manager_test.rs +++ b/crates/shirabe/tests/installer/installation_manager_test.rs @@ -1 +1,22 @@ //! ref: composer/tests/Composer/Test/Installer/InstallationManagerTest.php + +// 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); -- cgit v1.3.1