Skip to content

Commit adbac33

Browse files
hyperpolymathclaude
andcommitted
feat(panicbot): update translator tests for PA022 CryptoMisuse
Add CryptoMisuse and SupplyChain to test_all_23_categories_have_mappings and test_all_confidence_values_in_valid_range. Test count now covers all 23 PA rule IDs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 304b84d commit adbac33

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

bots/panicbot/tests/translator_test.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fn weak_point_at(category: &str, severity: &str, location: &str) -> WeakPoint {
4444
// --- Category Mapping Tests ---
4545

4646
#[test]
47-
fn test_all_20_categories_have_mappings() {
47+
fn test_all_23_categories_have_mappings() {
4848
let categories = [
4949
"UnsafeCode",
5050
"PanicPath",
@@ -66,6 +66,9 @@ fn test_all_20_categories_have_mappings() {
6666
"DynamicCodeExecution",
6767
"InsecureProtocol",
6868
"InfiniteRecursion",
69+
"ProofDrift",
70+
"CryptoMisuse",
71+
"SupplyChain",
6972
];
7073

7174
for cat in &categories {
@@ -383,7 +386,7 @@ fn test_all_confidence_values_in_valid_range() {
383386
"ResourceLeak", "PathTraversal", "AtomExhaustion", "ExcessivePermissions",
384387
"UnsafeTypeCoercion", "UncheckedAllocation", "UnboundedLoop", "BlockingIO",
385388
"DeadlockPotential", "DynamicCodeExecution", "InsecureProtocol",
386-
"InfiniteRecursion",
389+
"InfiniteRecursion", "ProofDrift", "CryptoMisuse", "SupplyChain",
387390
];
388391

389392
for cat in &categories {

0 commit comments

Comments
 (0)