MCPcopy Create free account
hub / github.com/EvoMap/evolver / makeMailboxStore

Function makeMailboxStore

test/syncEngineLoopResilience.test.js:59–75  ·  view source on GitHub ↗
(overrides = {})

Source from the content-addressed store, hash-verified

57}
58
59function makeMailboxStore(overrides = {}) {
60 const state = { node_id: 'node_aaaaaaaaaaaa' };
61 return Object.assign({
62 getState: (key) => (state[key] !== undefined ? state[key] : null),
63 setState: (key, value) => { state[key] = value; },
64 getCursor: () => null,
65 setCursor: () => {},
66 writeInboundBatch: () => {},
67 writeInbound: () => {},
68 list: () => [],
69 pollOutbound: () => [],
70 countPending: () => 0,
71 incrementRetry: () => {},
72 updateStatusBatch: () => {},
73 _state: state,
74 }, overrides);
75}
76
77function makeTextResponse(status, contentType, body) {
78 return {

Calls

no outgoing calls

Tested by

no test coverage detected