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

Function test_schema_version_in_decoded

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

make_minimal_envelopeFunction · 0.85
decodeFunction · 0.50
unwrapMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected