MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / one

Function one

__tests__/node-id-kind.test.ts:97–101  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

95 }) as never);
96
97 const one = (name: string): Node => {
98 const found = everyNode(g).filter((n) => n.name === name);
99 expect(found, name).toHaveLength(1);
100 return found[0]!;
101 };
102 const shown = (sub: { nodes: Map<string, Node>; edges: Edge[] }) => ({
103 nodes: [...sub.nodes.keys()],
104 edges: sub.edges.map((e) => `${e.source}|${e.target}|${e.kind}|${e.line ?? -1}|${e.column ?? -1}`),

Callers 2

toKindsFunction · 0.70

Calls 1

everyNodeFunction · 0.85

Tested by

no test coverage detected