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

Function test_schema_version_in_decoded

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

Source from the content-addressed store, hash-verified

1014
1015 #[test]
1016 fn test_schema_version_in_decoded() {
1017 let e = make_minimal_envelope();
1018 let bytes = e.encode().unwrap();
1019 let decoded = SessionEnvelope::decode(&bytes).unwrap();
1020 assert_eq!(decoded.schema_version, SCHEMA_VERSION);
1021 }
1022
1023 #[test]
1024 fn test_future_version_rejected() {

Callers

nothing calls this directly

Calls 3

make_minimal_envelopeFunction · 0.85
encodeMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected