MCPcopy Index your code
hub / github.com/AI45Lab/Code / test_default_classification_rules

Function test_default_classification_rules

core/src/security/config.rs:99–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97
98 #[test]
99 fn test_default_classification_rules() {
100 let rules = default_classification_rules();
101 assert_eq!(rules.len(), 5);
102
103 let names: Vec<&str> = rules.iter().map(|r| r.name.as_str()).collect();
104 assert!(names.contains(&"credit_card"));
105 assert!(names.contains(&"ssn"));
106 assert!(names.contains(&"email"));
107 assert!(names.contains(&"phone"));
108 assert!(names.contains(&"api_key"));
109 }
110
111 #[test]
112 fn test_default_dangerous_commands() {

Callers

nothing calls this directly

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected