Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ empty_data
Function
empty_data
nodedb-codec/src/zstd_codec.rs:240–244 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
238
239
#[test]
240
fn empty_data() {
241
let encoded = encode(&[]).unwrap();
242
let decoded = decode(&encoded).unwrap();
243
assert!(decoded.is_empty());
244
}
245
246
#[test]
247
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