Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ empty_roundtrip
Function
empty_roundtrip
nodedb-codec/src/crdt_compress.rs:247–251 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
245
246
#[test]
247
fn empty_roundtrip() {
248
let encoded = encode(&[]).unwrap();
249
let decoded = decode(&encoded).unwrap();
250
assert!(decoded.is_empty());
251
}
252
253
#[test]
254
fn basic_roundtrip() {
Callers
nothing calls this directly
Calls
2
encode
Function · 0.70
decode
Function · 0.70
Tested by
no test coverage detected