MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / memoryStorage

Function memoryStorage

apps/cloud/src/web/v2-moved-snooze.test.ts:17–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15const OTHER_ORG = "org_other";
16
17const memoryStorage = (): SnoozeStorage & { readonly items: Map<string, string> } => {
18 const items = new Map<string, string>();
19 return {
20 items,
21 getItem: (key) => items.get(key) ?? null,
22 setItem: (key, value) => void items.set(key, value),
23 };
24};
25
26/** Storage that throws on every access, like a disabled localStorage. */
27const throwingStorage: SnoozeStorage = {

Callers 1

Calls 2

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected