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

Function makeStore

test/lifecycleNodeIdLegacyFallback.test.js:51–61  ·  view source on GitHub ↗
(initial = {})

Source from the content-addressed store, hash-verified

49}
50
51function makeStore(initial = {}) {
52 const state = { ...initial };
53 return {
54 getState: (k) => (state[k] !== undefined ? state[k] : null),
55 setState: (k, v) => { state[k] = v; },
56 countPending: () => 0,
57 writeInbound: () => {},
58 writeInboundBatch: () => {},
59 _state: state,
60 };
61}
62
63function silentLogger() {
64 return { log: () => {}, warn: () => {}, error: () => {} };

Calls

no outgoing calls

Tested by

no test coverage detected