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

Function timestamp_batch_roundtrip

nodedb-codec/src/gorilla.rs:442–447  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

440
441 #[test]
442 fn timestamp_batch_roundtrip() {
443 let timestamps: Vec<i64> = (0..1000).map(|i| 1_700_000_000_000 + i * 10_000).collect();
444 let encoded = encode_timestamps(&timestamps);
445 let decoded = decode_timestamps(&encoded).unwrap();
446 assert_eq!(timestamps, decoded);
447 }
448
449 #[test]
450 fn varying_values_roundtrip() {

Callers

nothing calls this directly

Calls 3

encode_timestampsFunction · 0.85
decode_timestampsFunction · 0.85
collectMethod · 0.80

Tested by

no test coverage detected