()
| 857 | |
| 858 | #[test] |
| 859 | fn test_detect_encoding_utf8() { |
| 860 | assert_eq!(detect_encoding(b"hello world"), Encoding::Utf8); |
| 861 | assert_eq!(detect_encoding(b"fn main() {}"), Encoding::Utf8); |
| 862 | assert_eq!(detect_encoding("日本語".as_bytes()), Encoding::Utf8); |
| 863 | } |
| 864 | |
| 865 | #[test] |
| 866 | fn test_detect_encoding_binary() { |
nothing calls this directly
no outgoing calls
no test coverage detected