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

Function makeStorage

packages/react/src/api/server-profiles.test.ts:15–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13} from "./server-profiles";
14
15const makeStorage = (): ExecutorServerProfileStorage & { readonly values: Map<string, string> } => {
16 const values = new Map<string, string>();
17 return {
18 values,
19 getItem: (key) => values.get(key) ?? null,
20 setItem: (key, value) => values.set(key, value),
21 };
22};
23
24describe("Executor server profiles", () => {
25 it("reads and normalizes persisted server profiles", () => {

Callers 1

Calls 2

setMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected