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/delta.rs:255–259 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
253
254
#[test]
255
fn empty_roundtrip() {
256
let encoded = encode(&[]);
257
let decoded = decode(&encoded).unwrap();
258
assert!(decoded.is_empty());
259
}
260
261
#[test]
262
fn single_value() {
Callers
nothing calls this directly
Calls
2
encode
Function · 0.70
decode
Function · 0.70
Tested by
no test coverage detected