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

Function commit_kv_graph

nodedb/tests/transaction_batch_cross_engine.rs:80–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78
79#[test]
80fn commit_kv_graph() {
81 let (mut core, mut tx, mut rx, _dir) = make_core();
82
83 let resp = send_raw(
84 &mut core,
85 &mut tx,
86 &mut rx,
87 PhysicalPlan::Meta(MetaOp::TransactionBatch {
88 plans: vec![kv_put(b"kg1", b"val"), edge_put("g", "a", "b")],
89 }),
90 );
91 assert_eq!(resp.status, Status::Ok);
92 let r = send_raw(&mut core, &mut tx, &mut rx, kv_get(b"kg1"));
93 assert_eq!(&*r.payload, b"val");
94}
95
96#[test]
97fn rollback_kv_then_graph_fail() {

Callers

nothing calls this directly

Calls 3

kv_getFunction · 0.70
make_coreFunction · 0.50
send_rawFunction · 0.50

Tested by

no test coverage detected