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

Function put_one

nodedb/src/engine/array/test_support.rs:47–61  ·  view source on GitHub ↗
(e: &mut ArrayEngine, x: i64, y: i64, v: i64, lsn: u64)

Source from the content-addressed store, hash-verified

45}
46
47pub(super) fn put_one(e: &mut ArrayEngine, x: i64, y: i64, v: i64, lsn: u64) {
48 e.put_cells(
49 &aid(),
50 vec![ArrayPutCell {
51 coord: vec![CoordValue::Int64(x), CoordValue::Int64(y)],
52 attrs: vec![CellValue::Int64(v)],
53 surrogate: nodedb_types::Surrogate::ZERO,
54 system_from_ms: 0,
55 valid_from_ms: 0,
56 valid_until_ms: i64::MAX,
57 }],
58 lsn,
59 )
60 .unwrap();
61}

Calls 2

put_cellsMethod · 0.80
aidFunction · 0.70

Tested by

no test coverage detected