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

Function timestamps_roundtrip

nodedb-array/src/codec/column_codec.rs:261–266  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

259
260 #[test]
261 fn timestamps_roundtrip() {
262 let ts = vec![1_000_000i64, 1_001_000, 1_002_000, 1_100_000];
263 let data = encode_timestamps_col(&ts);
264 let out = decode_timestamps_col(&data).unwrap();
265 assert_eq!(out, ts);
266 }
267
268 #[test]
269 fn attr_col_int64_roundtrip() {

Callers

nothing calls this directly

Calls 2

encode_timestamps_colFunction · 0.85
decode_timestamps_colFunction · 0.85

Tested by

no test coverage detected