From 2ae0382e5592dfc3293113d726f9a1d9f4aa9923 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 29 Jun 2026 04:29:57 +0900 Subject: feat(audit): implement get_packages non-locked branch Port AuditCommand::getPackages's non-locked path: build an InstalledRepository from the local repository and return its packages, filtered by RootPackage requires when --no-dev is set. The prior TODO(phase-c) assumption (InstalledRepository::new vs get_local_repository type mismatch) no longer holds since both sides use RepositoryInterfaceHandle. Enables the two previously ignored audit command tests. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/tests/command/audit_command_test.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'crates/shirabe/tests/command/audit_command_test.rs') diff --git a/crates/shirabe/tests/command/audit_command_test.rs b/crates/shirabe/tests/command/audit_command_test.rs index a1658ba..617479f 100644 --- a/crates/shirabe/tests/command/audit_command_test.rs +++ b/crates/shirabe/tests/command/audit_command_test.rs @@ -10,7 +10,6 @@ use shirabe_php_shim::PhpMixed; #[test] #[serial] -#[ignore = "todo!() at crates/shirabe/src/command/audit_command.rs:285 (AuditCommand::get_packages non-locked branch: installed-repo conversion unported)"] fn test_successful_response_code_when_no_packages_are_required() { let tear_down = init_temp_composer(None, None, None, true); @@ -91,7 +90,6 @@ fn test_audit_package_with_no_security_vulnerabilities() { #[test] #[serial] -#[ignore = "todo!() at crates/shirabe/src/command/audit_command.rs:285 (AuditCommand::get_packages non-locked branch: installed-repo conversion unported)"] fn test_audit_package_with_no_dev_option_passed() { let tear_down = init_temp_composer(None, None, None, true); let dev_package: Vec = vec![get_package("dummy/pkg", "1.0.0")]; -- cgit v1.3.1