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

Function test_multiple_patterns

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

Source from the content-addressed store, hash-verified

374
375 #[test]
376 fn test_multiple_patterns() {
377 let provider = DefaultSecurityProvider::new();
378 let text = "Email: user@test.com, SSN: 123-45-6789, API: sk-abc123def456ghi789jkl";
379 let matches = provider.detect_sensitive(text);
380 assert_eq!(matches.len(), 3);
381 }
382
383 #[test]
384 fn test_no_false_positives() {

Callers

nothing calls this directly

Calls 1

detect_sensitiveMethod · 0.80

Tested by

no test coverage detected