aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/downloader/file_downloader_test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/tests/downloader/file_downloader_test.rs')
-rw-r--r--crates/shirabe/tests/downloader/file_downloader_test.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/crates/shirabe/tests/downloader/file_downloader_test.rs b/crates/shirabe/tests/downloader/file_downloader_test.rs
index 9e376be..b99dd93 100644
--- a/crates/shirabe/tests/downloader/file_downloader_test.rs
+++ b/crates/shirabe/tests/downloader/file_downloader_test.rs
@@ -8,63 +8,63 @@ fn set_up() {
// These construct a FileDownloader with a mocked IO/HttpDownloader (curl_multi_init todo!())
// and a mocked Cache/Package to drive download/checksum behaviour.
#[test]
-#[ignore = "mocks IO/HttpDownloader (curl_multi_init todo!()) and Cache/Package"]
+#[ignore = "requires PHPUnit mock of HttpDownloader::addCopy (getDownloader helper); no mocking framework and real HttpDownloader reaches curl_multi_init todo!()"]
fn test_download_for_package_without_dist_reference() {
set_up();
todo!()
}
#[test]
-#[ignore = "mocks IO/HttpDownloader (curl_multi_init todo!()) and Cache/Package"]
+#[ignore = "requires PHPUnit mock of HttpDownloader::addCopy (getDownloader helper); no mocking framework and real HttpDownloader reaches curl_multi_init todo!()"]
fn test_download_to_existing_file() {
set_up();
todo!()
}
#[test]
-#[ignore = "mocks IO/HttpDownloader (curl_multi_init todo!()) and Cache/Package"]
+#[ignore = "requires PHPUnit mock of HttpDownloader::addCopy (getDownloader helper) and ReflectionMethod on private getFileName; no mocking/reflection framework"]
fn test_get_file_name() {
set_up();
todo!()
}
#[test]
-#[ignore = "mocks IO/HttpDownloader (curl_multi_init todo!()) and Cache/Package"]
+#[ignore = "requires PHPUnit mock of HttpDownloader::addCopy and IOInterface::write callback; no mocking framework and real HttpDownloader reaches curl_multi_init todo!()"]
fn test_download_but_file_is_unsaved() {
set_up();
todo!()
}
#[test]
-#[ignore = "mocks IO/HttpDownloader (curl_multi_init todo!()) and Cache/Package"]
+#[ignore = "requires PHPUnit mocks of Cache::copyTo/copyFrom and HttpDownloader::addCopy with assertion callbacks; no mocking framework"]
fn test_download_with_custom_processed_url() {
set_up();
todo!()
}
#[test]
-#[ignore = "mocks IO/HttpDownloader (curl_multi_init todo!()) and Cache/Package"]
+#[ignore = "requires PHPUnit mocks of Cache::copyTo/copyFrom and HttpDownloader::addCopy with assertion callbacks; no mocking framework"]
fn test_download_with_custom_cache_key() {
set_up();
todo!()
}
#[test]
-#[ignore = "mocks IO/HttpDownloader (curl_multi_init todo!()) and Cache/Package"]
+#[ignore = "requires PHPUnit mock of Cache::gcIsNecessary/gc with expectation tracking; no mocking framework"]
fn test_cache_garbage_collection_is_called() {
set_up();
todo!()
}
#[test]
-#[ignore = "mocks IO/HttpDownloader (curl_multi_init todo!()) and Cache/Package"]
+#[ignore = "requires PHPUnit mock of Filesystem and HttpDownloader::addCopy plus ReflectionMethod on private getFileName; no mocking/reflection framework"]
fn test_download_file_with_invalid_checksum() {
set_up();
todo!()
}
#[test]
-#[ignore = "mocks IO/HttpDownloader (curl_multi_init todo!()) and Cache/Package"]
+#[ignore = "requires PHPUnit mocks of Filesystem::removeDirectoryAsync/normalizePath, HttpDownloader::addCopy, getIOMock expectations and ReflectionMethod on private getFileName; no mocking/reflection framework"]
fn test_downgrade_shows_appropriate_message() {
set_up();
todo!()