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

Function test_json_roundtrip

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

Source from the content-addressed store, hash-verified

967
968 #[test]
969 fn test_json_roundtrip() {
970 let original = make_envelope();
971 let json = serde_json::to_string(&original).unwrap();
972 let decoded: SessionEnvelope = serde_json::from_str(&json).unwrap();
973 assert_eq!(original, decoded);
974 }
975
976 #[test]
977 fn test_json_minimal_has_null_optionals() {

Callers

nothing calls this directly

Calls 2

make_envelopeFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected