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

Function test_detect_encoding_binary_null

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

Source from the content-addressed store, hash-verified

1348
1349 #[test]
1350 fn test_detect_encoding_binary_null() {
1351 let content = b"hello\x00world";
1352 let encoding = detect_encoding(content);
1353
1354 assert_eq!(encoding, Encoding::Binary);
1355 }
1356
1357 #[test]
1358 fn test_detect_encoding_binary_invalid_utf8() {

Callers

nothing calls this directly

Calls 1

detect_encodingFunction · 0.70

Tested by

no test coverage detected