Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ roundtrip_erase
Function
roundtrip_erase
nodedb-array/src/sync/op_codec.rs:108–113 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
106
107
#[test]
108
fn roundtrip_erase() {
109
let op = erase_op(
"arr"
, 300);
110
let bytes = encode_op(&op).unwrap();
111
let back = decode_op(&bytes).unwrap();
112
assert_eq!(op, back);
113
}
114
115
#[test]
116
fn roundtrip_batch_of_three() {
Callers
nothing calls this directly
Calls
3
erase_op
Function · 0.85
encode_op
Function · 0.85
decode_op
Function · 0.85
Tested by
no test coverage detected