Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ roundtrip_basic
Function
roundtrip_basic
nodedb-fts/src/codec/bitpack.rs:135–140 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
133
134
#[test]
135
fn roundtrip_basic() {
136
let values = vec![1, 3, 5, 7, 15];
137
let packed = pack(&values);
138
let unpacked = unpack(&packed);
139
assert_eq!(unpacked, values);
140
}
141
142
#[test]
143
fn roundtrip_zeros() {
Callers
nothing calls this directly
Calls
2
pack
Function · 0.85
unpack
Function · 0.70
Tested by
no test coverage detected