From 3498bb1ca00ab7d051d296b8d482bea987a00fa4 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 25 Jun 2026 17:02:11 +0900 Subject: test: port 24 command/repository/package/util tests; add TlsHelper Port command (9), util gitlab/forgejo/tls (6), package (6), repository (3) tests. Implement TlsHelper. Fix porting bugs: config_command extra merge, RootAliasPackage setters, ValidatingArrayLoader isset, repository_factory name generation, forgejo exception code, version_parser error chaining. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../tests/command/check_platform_reqs_command_test.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'crates/shirabe/tests/command/check_platform_reqs_command_test.rs') 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 9cbba58..47f89b9 100644 --- a/crates/shirabe/tests/command/check_platform_reqs_command_test.rs +++ b/crates/shirabe/tests/command/check_platform_reqs_command_test.rs @@ -1,19 +1,25 @@ //! ref: composer/tests/Composer/Test/Command/CheckPlatformReqsCommandTest.php #[test] -#[ignore = "missing TestCase::init_temp_composer, create_installed_json, create_composer_lock and get_application_tester (ApplicationTester) infrastructure"] +#[ignore = "needs create_installed_json / create_composer_lock helpers (InstalledFilesystemRepository \ + / Locker::set_lock_data), and require_composer -> Factory reaches ProcessExecutor (git) \ + -> shirabe-php-shim stream_set_blocking (stream.rs todo!(), requires fcntl(2))"] fn test_platform_reqs_are_satisfied() { todo!() } #[test] -#[ignore = "missing TestCase::init_temp_composer and get_application_tester (ApplicationTester) infrastructure"] +#[ignore = "check-platform-reqs calls require_composer -> Factory, reaching ProcessExecutor (git) \ + -> shirabe-php-shim stream_set_blocking (stream.rs todo!(), requires fcntl(2)) before \ + the missing-lockfile LogicException can be thrown"] fn test_exception_thrown_if_no_lockfile_found() { todo!() } #[test] -#[ignore = "missing TestCase::init_temp_composer, create_installed_json, create_composer_lock and get_application_tester (ApplicationTester) infrastructure"] +#[ignore = "needs create_installed_json / create_composer_lock helpers (InstalledFilesystemRepository \ + / Locker::set_lock_data), and require_composer -> Factory reaches ProcessExecutor (git) \ + -> shirabe-php-shim stream_set_blocking (stream.rs todo!(), requires fcntl(2))"] fn test_failed_platform_requirement() { todo!() } -- cgit v1.3.1