MCPcopy Create free account
hub / github.com/codemix/graph / customGenerator

Function customGenerator

packages/graph/src/test/Graph.test.ts:45–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43test("Graph - generateElementId() - should use custom ID generator when provided", () => {
44 let counter = 0;
45 const customGenerator = () => `short-${++counter}`;
46 const customStorage = new InMemoryGraphStorage();
47 const customGraph = new Graph({
48 schema: testSchema,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected