MCPcopy Create free account
hub / github.com/StarpTech/FastGraph / createKVNamespaces

Function createKVNamespaces

src/test-utils.ts:151–165  ·  view source on GitHub ↗
(
  namespaces: string[],
  store: Map<string, any> = new Map(),
  metadata: Map<string, any> = new Map(),
)

Source from the content-addressed store, hash-verified

149}
150
151export const createKVNamespaces = (
152 namespaces: string[],
153 store: Map<string, any> = new Map(),
154 metadata: Map<string, any> = new Map(),
155) => {
156 for (const namespace of namespaces) {
157 NewKVNamespace(
158 {
159 name: namespace,
160 },
161 store,
162 metadata,
163 )
164 }
165}
166
167export const NewKVNamespace = (
168 bindingConfig: { name: string },

Callers

nothing calls this directly

Calls 1

NewKVNamespaceFunction · 0.85

Tested by

no test coverage detected