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

Function test_detect_single_byte

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

Source from the content-addressed store, hash-verified

544
545 #[test]
546 fn test_detect_single_byte() {
547 assert_eq!(Encoding::detect(b"a"), Encoding::Utf8);
548 assert_eq!(Encoding::detect(b"\x00"), Encoding::Binary);
549 assert_eq!(Encoding::detect(b"\xff"), Encoding::Latin1);
550 }
551
552 #[test]
553 fn test_detect_two_bytes() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected