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

Function test_encode_has_magic_prefix

atomic-agent/src/envelope.rs:688–693  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

686
687 #[test]
688 fn test_encode_has_magic_prefix() {
689 let e = make_minimal_envelope();
690 let bytes = e.encode().unwrap();
691 assert!(bytes.len() >= MAGIC.len());
692 assert_eq!(&bytes[..4], MAGIC);
693 }
694
695 #[test]
696 fn test_encode_size_reasonable() {

Callers

nothing calls this directly

Calls 3

make_minimal_envelopeFunction · 0.85
encodeMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected