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/downloader/perforce_downloader_test.rs | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'crates/shirabe/tests/downloader/perforce_downloader_test.rs') diff --git a/crates/shirabe/tests/downloader/perforce_downloader_test.rs b/crates/shirabe/tests/downloader/perforce_downloader_test.rs index 97f45ca..41ced48 100644 --- a/crates/shirabe/tests/downloader/perforce_downloader_test.rs +++ b/crates/shirabe/tests/downloader/perforce_downloader_test.rs @@ -1 +1,28 @@ //! ref: composer/tests/Composer/Test/Downloader/PerforceDownloaderTest.php + +// These mock Perforce, the repository config and a Package to drive PerforceDownloader's +// initialization and install paths; mocking is not available here. + +#[test] +#[ignore = "mocks Perforce/repository/Package; mocking is not available"] +fn test_init_perforce_instantiates_a_new_perforce_object() { + todo!() +} + +#[test] +#[ignore = "mocks Perforce/repository/Package; mocking is not available"] +fn test_init_perforce_does_nothing_if_perforce_already_set() { + todo!() +} + +#[test] +#[ignore = "mocks Perforce/repository/Package; mocking is not available"] +fn test_do_install_with_tag() { + todo!() +} + +#[test] +#[ignore = "mocks Perforce/repository/Package; mocking is not available"] +fn test_do_install_with_no_tag() { + todo!() +} -- cgit v1.3.1