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

Function test_detect_binary_null_bytes

atomic-core/src/change/encoding.rs:361–365  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

359
360 #[test]
361 fn test_detect_binary_null_bytes() {
362 // Content with null bytes is binary
363 let content = b"Hello\x00World";
364 assert_eq!(Encoding::detect(content), Encoding::Binary);
365 }
366
367 #[test]
368 fn test_detect_latin1() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected