()
| 340 | |
| 341 | #[test] |
| 342 | fn test_detect_utf8_bom() { |
| 343 | // UTF-8 with BOM |
| 344 | let content = b"\xef\xbb\xbfHello with BOM"; |
| 345 | assert_eq!(Encoding::detect(content), Encoding::Utf8); |
| 346 | } |
| 347 | |
| 348 | #[test] |
| 349 | fn test_detect_utf16le_bom() { |
nothing calls this directly
no outgoing calls
no test coverage detected