()
| 505 | |
| 506 | #[test] |
| 507 | fn test_detect_encoding_utf8() { |
| 508 | assert_eq!(detect_encoding(b"Hello, World!"), Encoding::Utf8); |
| 509 | assert_eq!(detect_encoding(b""), Encoding::Utf8); |
| 510 | assert_eq!( |
| 511 | detect_encoding("UTF-8 with émojis 🎉".as_bytes()), |
| 512 | Encoding::Utf8 |
| 513 | ); |
| 514 | } |
| 515 | |
| 516 | #[test] |
| 517 | fn test_detect_encoding_binary_null() { |
nothing calls this directly
no outgoing calls
no test coverage detected