()
| 551 | |
| 552 | #[test] |
| 553 | fn test_detect_two_bytes() { |
| 554 | // Two bytes that look like UTF-16 BOM |
| 555 | assert_eq!(Encoding::detect(b"\xff\xfe"), Encoding::Utf16Le); |
| 556 | assert_eq!(Encoding::detect(b"\xfe\xff"), Encoding::Utf16Be); |
| 557 | } |
| 558 | } |
nothing calls this directly
no outgoing calls
no test coverage detected