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

Function test_detect_utf8_bom

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

Source from the content-addressed store, hash-verified

340
341 #[test]
342 fn test_detect_utf8_bom() {
343 // UTF-8 with BOM
344 let content = b"\xef\xbb\xbfHello with BOM";
345 assert_eq!(Encoding::detect(content), Encoding::Utf8);
346 }
347
348 #[test]
349 fn test_detect_utf16le_bom() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected