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

Function test_version_0_accepted

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

Source from the content-addressed store, hash-verified

1041
1042 #[test]
1043 fn test_version_0_accepted() {
1044 let mut e = make_minimal_envelope();
1045 e.schema_version = 0;
1046 let payload = postcard::to_allocvec(&e).unwrap();
1047 let mut bytes = Vec::new();
1048 bytes.extend_from_slice(MAGIC);
1049 bytes.extend_from_slice(&payload);
1050 let decoded = SessionEnvelope::decode(&bytes).unwrap();
1051 assert_eq!(decoded.schema_version, 0);
1052 }
1053
1054 // Edge cases
1055

Callers

nothing calls this directly

Calls 3

make_minimal_envelopeFunction · 0.85
decodeFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected