()
| 403 | |
| 404 | #[test] |
| 405 | fn test_bom_bytes() { |
| 406 | assert!(Encoding::Utf8.bom().is_empty()); |
| 407 | assert_eq!(Encoding::Utf16Le.bom(), &[0xFF, 0xFE]); |
| 408 | assert_eq!(Encoding::Utf16Be.bom(), &[0xFE, 0xFF]); |
| 409 | assert!(Encoding::Latin1.bom().is_empty()); |
| 410 | assert!(Encoding::Binary.bom().is_empty()); |
| 411 | } |
| 412 | |
| 413 | #[test] |
| 414 | fn test_skip_bom_utf8() { |
nothing calls this directly
no outgoing calls
no test coverage detected