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

Function test_encode_has_magic_prefix

atomic-core/src/change/envelope.rs:707–712  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

705
706 #[test]
707 fn test_encode_has_magic_prefix() {
708 let e = make_minimal_envelope();
709 let bytes = e.encode().unwrap();
710 assert!(bytes.len() >= MAGIC.len());
711 assert_eq!(&bytes[..4], MAGIC);
712 }
713
714 #[test]
715 fn test_encode_size_reasonable() {

Callers

nothing calls this directly

Calls 3

make_minimal_envelopeFunction · 0.85
unwrapMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected