MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_detect_encoding_utf8

Function test_detect_encoding_utf8

atomic-core/src/record/detect.rs:1342–1347  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1340
1341 #[test]
1342 fn test_detect_encoding_utf8() {
1343 let content = b"hello world";
1344 let encoding = detect_encoding(content);
1345
1346 assert_eq!(encoding, Encoding::Utf8);
1347 }
1348
1349 #[test]
1350 fn test_detect_encoding_binary_null() {

Callers

nothing calls this directly

Calls 1

detect_encodingFunction · 0.70

Tested by

no test coverage detected