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