MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_detect_ssn

Function test_detect_ssn

core/src/security/default.rs:295–301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

293
294 #[test]
295 fn test_detect_ssn() {
296 let provider = DefaultSecurityProvider::new();
297 let text = "My SSN is 123-45-6789";
298 let matches = provider.detect_sensitive(text);
299 assert_eq!(matches.len(), 1);
300 assert_eq!(matches[0].0, "ssn");
301 }
302
303 #[test]
304 fn test_detect_email() {

Callers

nothing calls this directly

Calls 1

detect_sensitiveMethod · 0.80

Tested by

no test coverage detected