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/lz4.rs:278–282 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
276
277
#[test]
278
fn empty_roundtrip() {
279
let encoded = encode(&[]);
280
let decoded = decode(&encoded).unwrap();
281
assert!(decoded.is_empty());
282
}
283
284
#[test]
285
fn small_data_roundtrip() {
Callers
nothing calls this directly
Calls
2
encode
Function · 0.70
decode
Function · 0.70
Tested by
no test coverage detected