diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-29 04:29:57 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-29 04:29:57 +0900 |
| commit | 2ae0382e5592dfc3293113d726f9a1d9f4aa9923 (patch) | |
| tree | 1925d85bdc0e32755a3d7b3e193da8afc3cba9b5 /crates/shirabe/tests/command/audit_command_test.rs | |
| parent | f33487739aa9af2f40df678db2e418788a66e634 (diff) | |
| download | php-shirabe-2ae0382e5592dfc3293113d726f9a1d9f4aa9923.tar.gz php-shirabe-2ae0382e5592dfc3293113d726f9a1d9f4aa9923.tar.zst php-shirabe-2ae0382e5592dfc3293113d726f9a1d9f4aa9923.zip | |
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) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/command/audit_command_test.rs')
| -rw-r--r-- | crates/shirabe/tests/command/audit_command_test.rs | 2 |
1 files changed, 0 insertions, 2 deletions
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<PackageInterfaceHandle> = vec![get_package("dummy/pkg", "1.0.0")]; |
