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

Function test_detect_email

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

Source from the content-addressed store, hash-verified

302
303 #[test]
304 fn test_detect_email() {
305 let provider = DefaultSecurityProvider::new();
306 let text = "Contact me at user@example.com";
307 let matches = provider.detect_sensitive(text);
308 assert_eq!(matches.len(), 1);
309 assert_eq!(matches[0].0, "email");
310 }
311
312 #[test]
313 fn test_detect_api_key() {

Callers

nothing calls this directly

Calls 1

detect_sensitiveMethod · 0.80

Tested by

no test coverage detected