()
| 544 | |
| 545 | #[test] |
| 546 | fn test_detect_single_byte() { |
| 547 | assert_eq!(Encoding::detect(b"a"), Encoding::Utf8); |
| 548 | assert_eq!(Encoding::detect(b"\x00"), Encoding::Binary); |
| 549 | assert_eq!(Encoding::detect(b"\xff"), Encoding::Latin1); |
| 550 | } |
| 551 | |
| 552 | #[test] |
| 553 | fn test_detect_two_bytes() { |
nothing calls this directly
no outgoing calls
no test coverage detected