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

Function test_encode_decode_roundtrip_full

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

Source from the content-addressed store, hash-verified

679
680 #[test]
681 fn test_encode_decode_roundtrip_full() {
682 let original = make_envelope();
683 let bytes = original.encode().unwrap();
684 let decoded = SessionEnvelope::decode(&bytes).unwrap();
685 assert_eq!(original, decoded);
686 }
687
688 #[test]
689 fn test_encode_decode_roundtrip_minimal() {

Callers

nothing calls this directly

Calls 4

make_envelopeFunction · 0.85
decodeFunction · 0.50
unwrapMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected