From 903d37a254f931e79ecded26f30a3b517c6d27da Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 21 Jun 2026 03:16:34 +0900 Subject: 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) --- crates/shirabe/tests/advisory/audit_config_test.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crates/shirabe/tests/advisory') 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"))])), ]), -- cgit v1.3.1