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

Function test_json_roundtrip

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

Source from the content-addressed store, hash-verified

968
969 #[test]
970 fn test_json_roundtrip() {
971 let original = make_envelope();
972 let json = serde_json::to_string(&original).unwrap();
973 let decoded: SessionEnvelope = serde_json::from_str(&json).unwrap();
974 assert_eq!(original, decoded);
975 }
976
977 #[test]
978 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