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

Function test_detect_utf16be_bom

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

Source from the content-addressed store, hash-verified

353
354 #[test]
355 fn test_detect_utf16be_bom() {
356 let content = b"\xfe\xff\x00H\x00e\x00l\x00l\x00o";
357 assert_eq!(Encoding::detect(content), Encoding::Utf16Be);
358 }
359
360 #[test]
361 fn test_detect_binary_null_bytes() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected