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/alp.rs:407–411 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
405
406
#[test]
407
fn empty_roundtrip() {
408
let encoded = encode(&[]);
409
let decoded = decode(&encoded).unwrap();
410
assert!(decoded.is_empty());
411
}
412
413
#[test]
414
fn single_value() {
Callers
nothing calls this directly
Calls
2
encode
Function · 0.70
decode
Function · 0.70
Tested by
no test coverage detected