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

Function test_detect_encoding_empty

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

Source from the content-addressed store, hash-verified

1364
1365 #[test]
1366 fn test_detect_encoding_empty() {
1367 let content = b"";
1368 let encoding = detect_encoding(content);
1369
1370 assert_eq!(encoding, Encoding::Utf8);
1371 }
1372
1373 // Binary Detection Tests
1374

Callers

nothing calls this directly

Calls 1

detect_encodingFunction · 0.70

Tested by

no test coverage detected