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

Function makeStore

test/lifecycleNodeIdUnification.test.js:76–86  ·  view source on GitHub ↗
(initial = {})

Source from the content-addressed store, hash-verified

74}
75
76function makeStore(initial = {}) {
77 const state = { ...initial };
78 return {
79 getState: (k) => (state[k] !== undefined ? state[k] : null),
80 setState: (k, v) => { state[k] = v; },
81 countPending: () => 0,
82 writeInbound: () => {},
83 writeInboundBatch: () => {},
84 _state: state,
85 };
86}
87
88function silentLogger() {
89 return { log: () => {}, warn: () => {}, error: () => {}, info: () => {}, debug: () => {} };

Calls

no outgoing calls

Tested by

no test coverage detected