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

Function make_op

nodedb/tests/array_sync_gc.rs:23–37  ·  view source on GitHub ↗
(array: &str, ms: u64, rid: u64)

Source from the content-addressed store, hash-verified

21use nodedb_array::types::coord::value::CoordValue;
22
23fn make_op(array: &str, ms: u64, rid: u64) -> ArrayOp {
24 ArrayOp {
25 header: ArrayOpHeader {
26 array: array.into(),
27 hlc: hlc(ms, rid),
28 schema_hlc: hlc(1, 1),
29 valid_from_ms: 0,
30 valid_until_ms: -1,
31 system_from_ms: ms as i64,
32 },
33 kind: ArrayOpKind::Put,
34 coord: vec![CoordValue::Int64(ms as i64)],
35 attrs: Some(vec![CellValue::Null]),
36 }
37}
38
39fn dummy_snapshot(array: &str, frontier: Hlc) -> TileSnapshot {
40 TileSnapshot {

Calls 1

hlcFunction · 0.50

Tested by

no test coverage detected