aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/downloader/fossil_downloader_test.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-21 04:30:31 +0900
committernsfisis <nsfisis@gmail.com>2026-06-21 04:30:31 +0900
commitd02e79c0cddd986a0b2cef878f32bda39cc2f5e9 (patch)
tree43e2256ae239aa005d31bc9505a507b4d303ab17 /crates/shirabe/tests/downloader/fossil_downloader_test.rs
parentd2babe9ed19a40dca2790b3eeaff0b0de9714451 (diff)
downloadphp-shirabe-d02e79c0cddd986a0b2cef878f32bda39cc2f5e9.tar.gz
php-shirabe-d02e79c0cddd986a0b2cef878f32bda39cc2f5e9.tar.zst
php-shirabe-d02e79c0cddd986a0b2cef878f32bda39cc2f5e9.zip
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) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/downloader/fossil_downloader_test.rs')
-rw-r--r--crates/shirabe/tests/downloader/fossil_downloader_test.rs40
1 files changed, 40 insertions, 0 deletions
diff --git a/crates/shirabe/tests/downloader/fossil_downloader_test.rs b/crates/shirabe/tests/downloader/fossil_downloader_test.rs
index 827d634..89e0a9d 100644
--- a/crates/shirabe/tests/downloader/fossil_downloader_test.rs
+++ b/crates/shirabe/tests/downloader/fossil_downloader_test.rs
@@ -1 +1,41 @@
//! ref: composer/tests/Composer/Test/Downloader/FossilDownloaderTest.php
+
+// Every case constructs a FossilDownloader with a mocked IO/Config and a mocked
+// ProcessExecutor to feed fossil command output; a real HttpDownloader reaches
+// curl_multi_init (todo!()), and ProcessExecutor mocking is not available.
+
+#[test]
+#[ignore = "mocks ProcessExecutor/IO and needs an HttpDownloader (curl_multi_init todo!())"]
+fn test_install_for_package_without_source_reference() {
+ todo!()
+}
+
+#[test]
+#[ignore = "mocks ProcessExecutor/IO and needs an HttpDownloader (curl_multi_init todo!())"]
+fn test_install() {
+ todo!()
+}
+
+#[test]
+#[ignore = "mocks ProcessExecutor/IO and needs an HttpDownloader (curl_multi_init todo!())"]
+fn test_updatefor_package_without_source_reference() {
+ todo!()
+}
+
+#[test]
+#[ignore = "mocks ProcessExecutor/IO and needs an HttpDownloader (curl_multi_init todo!())"]
+fn test_update() {
+ todo!()
+}
+
+#[test]
+#[ignore = "mocks ProcessExecutor/IO and needs an HttpDownloader (curl_multi_init todo!())"]
+fn test_remove() {
+ todo!()
+}
+
+#[test]
+#[ignore = "mocks ProcessExecutor/IO and needs an HttpDownloader (curl_multi_init todo!())"]
+fn test_get_installation_source() {
+ todo!()
+}