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

Function byKind

__tests__/kernel-scaffold.test.ts:98–98  ·  view source on GitHub ↗
(kind: string)

Source from the content-addressed store, hash-verified

96 expect(errors).toEqual([]);
97
98 const byKind = (kind: string) => nodes.filter((n) => n.kind === kind);
99 expect(byKind('file')).toHaveLength(1);
100 expect(byKind('class').map((n) => n.name)).toEqual(['MathHelper']);
101 expect(byKind('method').map((n) => n.qualifiedName)).toEqual(['MathHelper::calculateTotal']);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected