()
| 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() { |
nothing calls this directly
no test coverage detected