aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/package/archiver/zip_archiver_test.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-25 16:44:29 +0900
committernsfisis <nsfisis@gmail.com>2026-06-26 00:20:05 +0900
commitf5f429dbae0a3e2d8224c0b1e4edcef54805d286 (patch)
tree9f837baeeae6efa0ed926b181b8c273128d86c49 /crates/shirabe/tests/package/archiver/zip_archiver_test.rs
parent3a0d9340810a8808d963135a884f50d08442ac67 (diff)
downloadphp-shirabe-f5f429dbae0a3e2d8224c0b1e4edcef54805d286.tar.gz
php-shirabe-f5f429dbae0a3e2d8224c0b1e4edcef54805d286.tar.zst
php-shirabe-f5f429dbae0a3e2d8224c0b1e4edcef54805d286.zip
feat(http): reimplement CurlDownloader on reqwest; port 15 more tests
Replace the libcurl-shim CurlDownloader with a reqwest+tokio implementation per the .ken sketch, resolving the construction panic that blocked command tests (mock path via __new_mock is untouched). Port remote_filesystem (7), hg/svn driver (4), zip_archiver/git_exclude_filter (4) tests. Fix hg/svn/git_exclude regex-delimiter and svn result-propagation porting bugs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/package/archiver/zip_archiver_test.rs')
-rw-r--r--crates/shirabe/tests/package/archiver/zip_archiver_test.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/crates/shirabe/tests/package/archiver/zip_archiver_test.rs b/crates/shirabe/tests/package/archiver/zip_archiver_test.rs
index 7785976..b94beb6 100644
--- a/crates/shirabe/tests/package/archiver/zip_archiver_test.rs
+++ b/crates/shirabe/tests/package/archiver/zip_archiver_test.rs
@@ -1,6 +1,7 @@
//! ref: composer/tests/Composer/Test/Package/Archiver/ZipArchiverTest.php
use indexmap::IndexMap;
+use serial_test::serial;
use shirabe::package::archiver::{ArchiverInterface, ZipArchiver};
use shirabe::package::handle::CompletePackageHandle;
use shirabe::util::Platform;
@@ -116,8 +117,8 @@ impl ArchiverTestCase {
}
}
-#[ignore = "ZipArchiver::archive and the ZipArchive reader (open/get_from_name/...) are todo!() in the php-shim"]
#[test]
+#[serial]
fn test_simple_files() {
let mut test_case = ArchiverTestCase::set_up();
@@ -137,8 +138,8 @@ fn test_simple_files() {
test_case.assert_zip_archive(files);
}
-#[ignore = "ZipArchiver::archive and the ZipArchive reader (open/get_from_name/...) are todo!() in the php-shim"]
#[test]
+#[serial]
fn test_gitignore_exclude_negation() {
for include in ["!/docs", "!/docs/"] {
let mut test_case = ArchiverTestCase::set_up();
@@ -154,8 +155,8 @@ fn test_gitignore_exclude_negation() {
}
}
-#[ignore = "ZipArchiver::archive and the ZipArchive reader (open/get_from_name/...) are todo!() in the php-shim"]
#[test]
+#[serial]
fn test_folder_with_backslashes() {
if Platform::is_windows() {
// markTestSkipped('Folder names cannot contain backslashes on Windows.')