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) --- .../shirabe/tests/downloader/zip_downloader_test.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'crates/shirabe/tests/downloader/zip_downloader_test.rs') diff --git a/crates/shirabe/tests/downloader/zip_downloader_test.rs b/crates/shirabe/tests/downloader/zip_downloader_test.rs index 8b53dac..0c8657c 100644 --- a/crates/shirabe/tests/downloader/zip_downloader_test.rs +++ b/crates/shirabe/tests/downloader/zip_downloader_test.rs @@ -1 +1,22 @@ //! ref: composer/tests/Composer/Test/Downloader/ZipDownloaderTest.php + +// These construct a ZipDownloader with a mocked IO/HttpDownloader/ProcessExecutor and rely +// on ZipArchive extraction (todo!() in the php-shim) plus mocked unzip behaviour. +macro_rules! stub { + ($name:ident) => { + #[test] + #[ignore = "mocks IO/HttpDownloader/ProcessExecutor and uses ZipArchive (todo!())"] + fn $name() { + todo!() + } + }; +} + +stub!(test_error_messages); +stub!(test_zip_archive_only_failed); +stub!(test_zip_archive_extract_only_failed); +stub!(test_zip_archive_only_good); +stub!(test_system_unzip_only_failed); +stub!(test_system_unzip_only_good); +stub!(test_non_windows_fallback_good); +stub!(test_non_windows_fallback_failed); -- cgit v1.3.1