From d02e79c0cddd986a0b2cef878f32bda39cc2f5e9 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 21 Jun 2026 04:30:31 +0900 Subject: test: port SecurityAdvisoryPoolFilter, downloader/command/app stubs All ignored/todo!(): the advisory filter parses affectedVersions via a look-around regex; the Hg/Fossil/Perforce/Archive downloaders and RepositoryManager need mocked process/HttpDownloader (curl); the Validate/ Archive commands, ApplicationTest and CompletionFunctionalTest need the ApplicationTester/console harness. setUp/tearDown not ported. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../tests/downloader/archive_downloader_test.rs | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'crates/shirabe/tests/downloader/archive_downloader_test.rs') diff --git a/crates/shirabe/tests/downloader/archive_downloader_test.rs b/crates/shirabe/tests/downloader/archive_downloader_test.rs index 54ac321..2c0e2de 100644 --- a/crates/shirabe/tests/downloader/archive_downloader_test.rs +++ b/crates/shirabe/tests/downloader/archive_downloader_test.rs @@ -1 +1,41 @@ //! ref: composer/tests/Composer/Test/Downloader/ArchiveDownloaderTest.php + +// These exercise getFileName/processUrl on an anonymous ArchiveDownloader subclass built +// with a mocked IO and a real HttpDownloader (curl_multi_init is todo!()), and pass mocked +// packages. + +#[test] +#[ignore = "constructs an ArchiveDownloader (HttpDownloader reaches curl_multi_init, todo!()) with a mocked subclass/package"] +fn test_get_file_name() { + todo!() +} + +#[test] +#[ignore = "constructs an ArchiveDownloader (HttpDownloader reaches curl_multi_init, todo!()) with a mocked subclass/package"] +fn test_process_url() { + todo!() +} + +#[test] +#[ignore = "constructs an ArchiveDownloader (HttpDownloader reaches curl_multi_init, todo!()) with a mocked subclass/package"] +fn test_process_url2() { + todo!() +} + +#[test] +#[ignore = "constructs an ArchiveDownloader (HttpDownloader reaches curl_multi_init, todo!()) with a mocked subclass/package"] +fn test_process_url3() { + todo!() +} + +#[test] +#[ignore = "constructs an ArchiveDownloader (HttpDownloader reaches curl_multi_init, todo!()) with a mocked subclass/package"] +fn test_process_url_rewrite_dist() { + todo!() +} + +#[test] +#[ignore = "constructs an ArchiveDownloader (HttpDownloader reaches curl_multi_init, todo!()) with a mocked subclass/package"] +fn test_process_url_rewrite_bitbucket_dist() { + todo!() +} -- cgit v1.3.1