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

Function roundtrip_batch_of_three

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

Source from the content-addressed store, hash-verified

114
115 #[test]
116 fn roundtrip_batch_of_three() {
117 let ops = vec![put_op("a", 1), delete_op("b", 2), erase_op("c", 3)];
118 let bytes = encode_op_batch(&ops).unwrap();
119 let back = decode_op_batch(&bytes).unwrap();
120 assert_eq!(ops, back);
121 }
122
123 #[test]
124 fn decode_garbage_errors() {

Callers

nothing calls this directly

Calls 2

encode_op_batchFunction · 0.85
decode_op_batchFunction · 0.85

Tested by

no test coverage detected