MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / roundtrip_zeros

Function roundtrip_zeros

nodedb-fts/src/codec/bitpack.rs:143–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141
142 #[test]
143 fn roundtrip_zeros() {
144 let values = vec![0, 0, 0, 0];
145 let packed = pack(&values);
146 assert_eq!(packed.len(), 3); // Header only, no data.
147 assert_eq!(unpack(&packed), values);
148 }
149
150 #[test]
151 fn roundtrip_empty() {

Callers

nothing calls this directly

Calls 1

packFunction · 0.85

Tested by

no test coverage detected