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

Function everyNode

__tests__/node-id-kind.test.ts:55–55  ·  view source on GitHub ↗
(g: CodeGraph)

Source from the content-addressed store, hash-verified

53 });
54
55 const everyNode = (g: CodeGraph): Node[] => NODE_KINDS.flatMap((kind) => g.getNodesByKind(kind));
56
57 it('every node\'s id begins with its kind, in every language the fixtures hold', async () => {
58 fs.cpSync(path.join(__dirname, 'fixtures'), path.join(dir, 'fixtures'), { recursive: true });

Callers 2

oneFunction · 0.85

Calls 1

getNodesByKindMethod · 0.65

Tested by

no test coverage detected