()
| 366 | |
| 367 | #[test] |
| 368 | fn test_detect_latin1() { |
| 369 | // High bytes that aren't valid UTF-8 |
| 370 | let content = b"Caf\xe9"; // "Café" in Latin-1 |
| 371 | assert_eq!(Encoding::detect(content), Encoding::Latin1); |
| 372 | } |
| 373 | |
| 374 | #[test] |
| 375 | fn test_detect_empty() { |
nothing calls this directly
no outgoing calls
no test coverage detected