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

Function test_detect_utf16le_bom

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

Source from the content-addressed store, hash-verified

347
348 #[test]
349 fn test_detect_utf16le_bom() {
350 let content = b"\xff\xfeH\x00e\x00l\x00l\x00o\x00";
351 assert_eq!(Encoding::detect(content), Encoding::Utf16Le);
352 }
353
354 #[test]
355 fn test_detect_utf16be_bom() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected