Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ roundtrip_delete
Function
roundtrip_delete
nodedb-array/src/sync/op_codec.rs:100–105 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
98
99
#[test]
100
fn roundtrip_delete() {
101
let op = delete_op(
"arr"
, 200);
102
let bytes = encode_op(&op).unwrap();
103
let back = decode_op(&bytes).unwrap();
104
assert_eq!(op, back);
105
}
106
107
#[test]
108
fn roundtrip_erase() {
Callers
nothing calls this directly
Calls
3
encode_op
Function · 0.85
decode_op
Function · 0.85
delete_op
Function · 0.70
Tested by
no test coverage detected