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

Function roundtrip

nodedb-array/src/codec/coord_rle.rs:211–216  ·  view source on GitHub ↗
(dict: &DimDict)

Source from the content-addressed store, hash-verified

209 }
210
211 fn roundtrip(dict: &DimDict) -> DimDict {
212 let mut buf = Vec::new();
213 encode_coord_axis_rle(dict, &mut buf).unwrap();
214 let mut pos = 0;
215 decode_coord_axis_rle(&buf, &mut pos).unwrap()
216 }
217
218 #[test]
219 fn empty_dict_roundtrip() {

Callers 7

empty_dict_roundtripFunction · 0.70
single_entry_roundtripFunction · 0.70
long_run_uses_rleFunction · 0.70
mixed_runs_roundtripFunction · 0.70
large_rle_roundtripFunction · 0.70

Calls 2

encode_coord_axis_rleFunction · 0.85
decode_coord_axis_rleFunction · 0.85

Tested by 7

empty_dict_roundtripFunction · 0.56
single_entry_roundtripFunction · 0.56
long_run_uses_rleFunction · 0.56
mixed_runs_roundtripFunction · 0.56
large_rle_roundtripFunction · 0.56