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

Function byKind

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

Source from the content-addressed store, hash-verified

108 expect(errors).toEqual([]);
109
110 const byKind = (kind: string) => nodes.filter((n) => n.kind === kind);
111 expect(byKind('file')).toHaveLength(1);
112 expect(byKind('class').map((n) => n.name)).toEqual(['MathHelper']);
113 expect(byKind('method').map((n) => n.qualifiedName)).toEqual(['MathHelper::calculateTotal']);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected