()
| 412 | |
| 413 | #[test] |
| 414 | fn test_skip_bom_utf8() { |
| 415 | let with_bom = b"\xef\xbb\xbfHello"; |
| 416 | let without_bom = b"Hello"; |
| 417 | |
| 418 | assert_eq!(Encoding::Utf8.skip_bom(with_bom), b"Hello"); |
| 419 | assert_eq!(Encoding::Utf8.skip_bom(without_bom), b"Hello"); |
| 420 | } |
| 421 | |
| 422 | #[test] |
| 423 | fn test_skip_bom_utf16le() { |
nothing calls this directly
no outgoing calls
no test coverage detected