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

Function timestamp_coord_roundtrip

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

Source from the content-addressed store, hash-verified

282
283 #[test]
284 fn timestamp_coord_roundtrip() {
285 let values = vec![
286 CoordValue::TimestampMs(1_000_000),
287 CoordValue::TimestampMs(2_000_000),
288 ];
289 let indices: Vec<u32> = (0..10).map(|i| i % 2).collect();
290 let d = make_dict(indices, values);
291 let out = roundtrip(&d);
292 assert_eq!(out.indices, d.indices);
293 assert_eq!(out.values, d.values);
294 }
295}

Callers

nothing calls this directly

Calls 3

collectMethod · 0.80
make_dictFunction · 0.70
roundtripFunction · 0.70

Tested by

no test coverage detected