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

Function names

__tests__/src-build-folders.test.ts:192–192  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

190 const cg = await CodeGraph.init(root, { index: true });
191 graphs.push(cg);
192 const names = (file: string) => cg.getNodesInFile(file).map((n) => n.name);
193 expect(names('src/go/build/build.go')).toContain('Import');
194 expect(names('tools/src/Build/BuildManager.cs')).toEqual(expect.arrayContaining(['BuildManager', 'Run']));
195 expect(names('crates/cli/src/build/mod.rs')).toEqual(expect.arrayContaining(['BuildRequest', 'new', 'run']));

Callers 1

Calls 2

mapMethod · 0.80
getNodesInFileMethod · 0.65

Tested by

no test coverage detected