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

Function test_bom_bytes

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

Source from the content-addressed store, hash-verified

403
404 #[test]
405 fn test_bom_bytes() {
406 assert!(Encoding::Utf8.bom().is_empty());
407 assert_eq!(Encoding::Utf16Le.bom(), &[0xFF, 0xFE]);
408 assert_eq!(Encoding::Utf16Be.bom(), &[0xFE, 0xFF]);
409 assert!(Encoding::Latin1.bom().is_empty());
410 assert!(Encoding::Binary.bom().is_empty());
411 }
412
413 #[test]
414 fn test_skip_bom_utf8() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected