()
| 326 | |
| 327 | #[test] |
| 328 | fn test_detect_utf8_ascii() { |
| 329 | // Pure ASCII is valid UTF-8 |
| 330 | let content = b"Hello, World!\nThis is a test."; |
| 331 | assert_eq!(Encoding::detect(content), Encoding::Utf8); |
| 332 | } |
| 333 | |
| 334 | #[test] |
| 335 | fn test_detect_utf8_multibyte() { |
nothing calls this directly
no outgoing calls
no test coverage detected