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

Function test_skip_bom_utf8

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

Source from the content-addressed store, hash-verified

412
413 #[test]
414 fn test_skip_bom_utf8() {
415 let with_bom = b"\xef\xbb\xbfHello";
416 let without_bom = b"Hello";
417
418 assert_eq!(Encoding::Utf8.skip_bom(with_bom), b"Hello");
419 assert_eq!(Encoding::Utf8.skip_bom(without_bom), b"Hello");
420 }
421
422 #[test]
423 fn test_skip_bom_utf16le() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected