diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-22 02:09:59 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-22 02:09:59 +0900 |
| commit | 822d9a872807a92a5337ee8b7bab96dc9845cdbb (patch) | |
| tree | 4931365df5978caffade69cad2154718a9076f66 /crates/shirabe/tests/downloader/download_manager_test.rs | |
| parent | f691b864b687f251c3b266e8cff2774d730567ba (diff) | |
| download | php-shirabe-822d9a872807a92a5337ee8b7bab96dc9845cdbb.tar.gz php-shirabe-822d9a872807a92a5337ee8b7bab96dc9845cdbb.tar.zst php-shirabe-822d9a872807a92a5337ee8b7bab96dc9845cdbb.zip | |
test: port more test cases
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/downloader/download_manager_test.rs')
| -rw-r--r-- | crates/shirabe/tests/downloader/download_manager_test.rs | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/crates/shirabe/tests/downloader/download_manager_test.rs b/crates/shirabe/tests/downloader/download_manager_test.rs index f9c44f4..b7fa976 100644 --- a/crates/shirabe/tests/downloader/download_manager_test.rs +++ b/crates/shirabe/tests/downloader/download_manager_test.rs @@ -7,218 +7,218 @@ fn set_up() { // These mock IO and individual downloaders to drive DownloadManager's selection/download/ // update/remove logic; mocking is not available here. +#[ignore = "requires PHPUnit mock of DownloaderInterface (createDownloaderMock)"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_set_get_downloader() { set_up(); todo!() } +#[ignore = "requires PHPUnit mock of PackageInterface (createPackageMock)"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_get_downloader_for_incorrectly_installed_package() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks and partial mock of DownloadManager::getDownloader"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_get_downloader_for_correctly_installed_dist_package() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks and partial mock of DownloadManager::getDownloader"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_get_downloader_for_incorrectly_installed_dist_package() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks and partial mock of DownloadManager::getDownloader"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_get_downloader_for_correctly_installed_source_package() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks and partial mock of DownloadManager::getDownloader"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_get_downloader_for_incorrectly_installed_source_package() { set_up(); todo!() } +#[ignore = "requires PHPUnit mock of PackageInterface (createPackageMock)"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_get_downloader_for_metapackage() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks and partial mock of DownloadManager::getDownloaderForPackage"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_full_package_download() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks and partial mock of DownloadManager::getDownloaderForPackage"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_full_package_download_failover() { set_up(); todo!() } +#[ignore = "requires PHPUnit mock of PackageInterface (createPackageMock)"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_bad_package_download() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks and partial mock of DownloadManager::getDownloaderForPackage"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_dist_only_package_download() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks and partial mock of DownloadManager::getDownloaderForPackage"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_source_only_package_download() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks and partial mock of DownloadManager::getDownloaderForPackage"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_metapackage_package_download() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks and partial mock of DownloadManager::getDownloaderForPackage"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_full_package_download_with_source_preferred() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks and partial mock of DownloadManager::getDownloaderForPackage"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_dist_only_package_download_with_source_preferred() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks and partial mock of DownloadManager::getDownloaderForPackage"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_source_only_package_download_with_source_preferred() { set_up(); todo!() } +#[ignore = "requires PHPUnit mock of PackageInterface (createPackageMock)"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_bad_package_download_with_source_preferred() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks of PackageInterface and DownloaderInterface"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_update_dist_with_equal_types() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks of PackageInterface and DownloaderInterface"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_update_dist_with_not_equal_types() { set_up(); todo!() } +#[ignore = "requires PHPUnit mock of PackageInterface and ReflectionMethod for private getAvailableSources"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_get_available_sources_update_sticks_to_same_source() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks and partial mock of DownloadManager::getDownloaderForPackage"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_update_metapackage() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks and partial mock of DownloadManager::getDownloaderForPackage"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_remove() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks and partial mock of DownloadManager::getDownloaderForPackage"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_metapackage_remove() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks and partial mock of DownloadManager::getDownloaderForPackage"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_install_preference_without_preference_dev() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks and partial mock of DownloadManager::getDownloaderForPackage"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_install_preference_without_preference_no_dev() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks and partial mock of DownloadManager::getDownloaderForPackage"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_install_preference_without_match_dev() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks and partial mock of DownloadManager::getDownloaderForPackage"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_install_preference_without_match_no_dev() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks and partial mock of DownloadManager::getDownloaderForPackage"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_install_preference_with_match_auto_dev() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks and partial mock of DownloadManager::getDownloaderForPackage"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_install_preference_with_match_auto_no_dev() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks and partial mock of DownloadManager::getDownloaderForPackage"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_install_preference_with_match_source() { set_up(); todo!() } +#[ignore = "requires PHPUnit mocks and partial mock of DownloadManager::getDownloaderForPackage"] #[test] -#[ignore = "mocks IO and individual downloaders to drive DownloadManager; mocking is not available"] fn test_install_preference_with_match_dist() { set_up(); todo!() |
