MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / roundtrip_put

Function roundtrip_put

nodedb-array/src/sync/op_codec.rs:92–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90
91 #[test]
92 fn roundtrip_put() {
93 let op = put_op("arr", 100);
94 let bytes = encode_op(&op).unwrap();
95 let back = decode_op(&bytes).unwrap();
96 assert_eq!(op, back);
97 }
98
99 #[test]
100 fn roundtrip_delete() {

Callers

nothing calls this directly

Calls 3

encode_opFunction · 0.85
decode_opFunction · 0.85
put_opFunction · 0.70

Tested by

no test coverage detected