aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/downloader/zip_downloader_test.rs
blob: 0c8657c8c83a3ad1f97dd7ffdb131bcddb2ad4f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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);