()
| 311 | |
| 312 | #[test] |
| 313 | fn test_detect_api_key() { |
| 314 | let provider = DefaultSecurityProvider::new(); |
| 315 | let text = "API key: sk-1234567890abcdefghij"; |
| 316 | let matches = provider.detect_sensitive(text); |
| 317 | assert_eq!(matches.len(), 1); |
| 318 | assert_eq!(matches[0].0, "api_key"); |
| 319 | } |
| 320 | |
| 321 | #[test] |
| 322 | fn test_sanitize_output() { |
nothing calls this directly
no test coverage detected