From 41c80058ad57143b2ab23d2eb241983627de9da1 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 21 Jun 2026 03:47:19 +0900 Subject: test: port Documentation/Xz/Audit/ErrorHandler/PharArchiver tests as stubs All ignored/todo!(): they need infrastructure not yet ported (console Application, HttpDownloader/curl, ApplicationTester, PHP runtime error handler, PharData/ZipArchive). Wires up the downloader test target. setUp/tearDown not ported. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/tests/command/audit_command_test.rs | 24 ++++++++++++++++++++++ crates/shirabe/tests/command/main.rs | 1 + 2 files changed, 25 insertions(+) (limited to 'crates/shirabe/tests/command') diff --git a/crates/shirabe/tests/command/audit_command_test.rs b/crates/shirabe/tests/command/audit_command_test.rs index fd18db1..4972793 100644 --- a/crates/shirabe/tests/command/audit_command_test.rs +++ b/crates/shirabe/tests/command/audit_command_test.rs @@ -1 +1,25 @@ //! ref: composer/tests/Composer/Test/Command/AuditCommandTest.php + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_successful_response_code_when_no_packages_are_required() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_error_auditing_lock_file_when_it_is_missing() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_audit_package_with_no_security_vulnerabilities() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_audit_package_with_no_dev_option_passed() { + todo!() +} diff --git a/crates/shirabe/tests/command/main.rs b/crates/shirabe/tests/command/main.rs index f8aef08..fd40768 100644 --- a/crates/shirabe/tests/command/main.rs +++ b/crates/shirabe/tests/command/main.rs @@ -1,4 +1,5 @@ mod about_command_test; +mod audit_command_test; mod clear_cache_command_test; mod diagnose_command_test; mod exec_command_test; -- cgit v1.3.1