diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-21 03:16:34 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-21 03:17:45 +0900 |
| commit | 903d37a254f931e79ecded26f30a3b517c6d27da (patch) | |
| tree | 4cd32e55466dd463e10aef35e8fad239dd08938a /crates/shirabe/tests/advisory | |
| parent | d9eb06c836e1faa759225a9653181b1dcd38a52d (diff) | |
| download | php-shirabe-903d37a254f931e79ecded26f30a3b517c6d27da.tar.gz php-shirabe-903d37a254f931e79ecded26f30a3b517c6d27da.tar.zst php-shirabe-903d37a254f931e79ecded26f30a3b517c6d27da.zip | |
test(repository): port InstalledRepositoryTest
testAddRepository maps the expected LogicException to #[should_panic]
since InstalledRepository::add_repository guards with assert!.
testFindPackagesWithReplacersAndProviders is #[ignore] because that
assert omits InstalledRepositoryInterface, so adding an
InstalledArrayRepository panics before the lookup runs.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/advisory')
| -rw-r--r-- | crates/shirabe/tests/advisory/audit_config_test.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/shirabe/tests/advisory/audit_config_test.rs b/crates/shirabe/tests/advisory/audit_config_test.rs index c50ccd3..008fb4f 100644 --- a/crates/shirabe/tests/advisory/audit_config_test.rs +++ b/crates/shirabe/tests/advisory/audit_config_test.rs @@ -107,7 +107,10 @@ fn test_mixed_formats() { ("CVE-2024-5678", s("Simple reason")), ( "CVE-2024-9999", - arr(vec![("apply", s("audit")), ("reason", s("Detailed reason"))]), + arr(vec![ + ("apply", s("audit")), + ("reason", s("Detailed reason")), + ]), ), ("CVE-2024-8888", arr(vec![("apply", s("block"))])), ]), |
