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

Function callsFrom

__tests__/python-local-binding.test.ts:67–73  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

65});
66
67const callsFrom = (file: string) => {
68 const ids = cg.getNodesInFile(file).map((n) => n.id);
69 return cg.getOutgoingEdgesFrom(ids).filter((e) => e.kind === 'calls').map((e) => {
70 const t = cg.getNode(e.target)!;
71 return `${t.filePath}: ${t.qualifiedName}`;
72 }).sort();
73};
74
75describe('bare Python calls to locally bound names', () => {
76 it('are the local value, not another file’s function of that name', () => {

Callers 1

Calls 4

mapMethod · 0.80
getNodeMethod · 0.80
getNodesInFileMethod · 0.65
getOutgoingEdgesFromMethod · 0.45

Tested by

no test coverage detected