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

Function calls

__tests__/dynamic-import-binding.test.ts:152–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150 write('src/use.ts', plain);
151 const graph = await CodeGraph.init(dir, { index: true });
152 const calls = (): string[] =>
153 graph.getNodesInFile('src/use.ts').flatMap((n) =>
154 graph.getOutgoingEdges(n.id).filter((e) => e.kind === 'calls').map((e) => `${graph.getNode(e.target)!.filePath}:${graph.getNode(e.target)!.name}`));
155 try {
156 expect(calls()).toContain('src/io.ts:readFile');
157 write('src/use.ts', dynamic);

Callers 1

Calls 4

mapMethod · 0.80
getNodeMethod · 0.80
getNodesInFileMethod · 0.65
getOutgoingEdgesMethod · 0.45

Tested by

no test coverage detected