From 1936ccd4ee01ac7ef043c525753e06ce328aa529 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 21 Jun 2026 04:24:02 +0900 Subject: test: port GitHub/GitLab/Forgejo, Search/CheckPlatformReqs, ZipArchiver stubs All ignored/todo!(): the auth-util tests mock IO/Config/HttpDownloader, the command tests need ApplicationTester, and ZipArchiver builds a zip via ZipArchive (todo!()). setUp/tearDown not ported. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../tests/command/check_platform_reqs_command_test.rs | 18 ++++++++++++++++++ crates/shirabe/tests/command/main.rs | 2 ++ crates/shirabe/tests/command/search_command_test.rs | 18 ++++++++++++++++++ 3 files changed, 38 insertions(+) (limited to 'crates/shirabe/tests/command') diff --git a/crates/shirabe/tests/command/check_platform_reqs_command_test.rs b/crates/shirabe/tests/command/check_platform_reqs_command_test.rs index f54b78e..a3a6ae5 100644 --- a/crates/shirabe/tests/command/check_platform_reqs_command_test.rs +++ b/crates/shirabe/tests/command/check_platform_reqs_command_test.rs @@ -1 +1,19 @@ //! ref: composer/tests/Composer/Test/Command/CheckPlatformReqsCommandTest.php + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_platform_reqs_are_satisfied() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_exception_thrown_if_no_lockfile_found() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_failed_platform_requirement() { + todo!() +} diff --git a/crates/shirabe/tests/command/main.rs b/crates/shirabe/tests/command/main.rs index 195f570..9183b33 100644 --- a/crates/shirabe/tests/command/main.rs +++ b/crates/shirabe/tests/command/main.rs @@ -1,9 +1,11 @@ mod about_command_test; mod audit_command_test; +mod check_platform_reqs_command_test; mod clear_cache_command_test; mod diagnose_command_test; mod exec_command_test; mod home_command_test; mod reinstall_command_test; +mod search_command_test; mod self_update_command_test; mod status_command_test; diff --git a/crates/shirabe/tests/command/search_command_test.rs b/crates/shirabe/tests/command/search_command_test.rs index a6fdb1c..d5b6a76 100644 --- a/crates/shirabe/tests/command/search_command_test.rs +++ b/crates/shirabe/tests/command/search_command_test.rs @@ -1 +1,19 @@ //! ref: composer/tests/Composer/Test/Command/SearchCommandTest.php + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_search() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_invalid_format() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_invalid_flags() { + todo!() +} -- cgit v1.3.1