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/repository/repository_manager_test.rs | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'crates/shirabe/tests/repository/repository_manager_test.rs') diff --git a/crates/shirabe/tests/repository/repository_manager_test.rs b/crates/shirabe/tests/repository/repository_manager_test.rs index 6af58e8..60deb7e 100644 --- a/crates/shirabe/tests/repository/repository_manager_test.rs +++ b/crates/shirabe/tests/repository/repository_manager_test.rs @@ -1 +1,29 @@ //! ref: composer/tests/Composer/Test/Repository/RepositoryManagerTest.php + +// These construct a RepositoryManager (which builds an HttpDownloader reaching +// curl_multi_init, todo!()) with a mocked IO/Config/EventDispatcher and exercise repo +// creation/prepending/wrapping. + +#[test] +#[ignore = "RepositoryManager::new builds an HttpDownloader (curl_multi_init todo!()) and mocks IO/Config"] +fn test_prepend() { + todo!() +} + +#[test] +#[ignore = "RepositoryManager::new builds an HttpDownloader (curl_multi_init todo!()) and mocks IO/Config"] +fn test_repo_creation() { + todo!() +} + +#[test] +#[ignore = "RepositoryManager::new builds an HttpDownloader (curl_multi_init todo!()) and mocks IO/Config"] +fn test_invalid_repo_creation_throws() { + todo!() +} + +#[test] +#[ignore = "RepositoryManager::new builds an HttpDownloader (curl_multi_init todo!()) and mocks IO/Config"] +fn test_filter_repo_wrapping() { + todo!() +} -- cgit v1.3.1