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

Function mixed_runs_roundtrip

nodedb-array/src/codec/coord_rle.rs:265–273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

263
264 #[test]
265 fn mixed_runs_roundtrip() {
266 // Two chromosomes, each repeated 500 times.
267 let mut indices = vec![0u32; 500];
268 indices.extend(vec![1u32; 500]);
269 let d = make_dict(indices, vec![CoordValue::Int64(1), CoordValue::Int64(2)]);
270 let out = roundtrip(&d);
271 assert_eq!(out.indices, d.indices);
272 assert_eq!(out.values, d.values);
273 }
274
275 #[test]
276 fn large_rle_roundtrip() {

Callers

nothing calls this directly

Calls 3

make_dictFunction · 0.70
roundtripFunction · 0.70
extendMethod · 0.45

Tested by

no test coverage detected