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

Function callees

__tests__/cpp-macro-include-walk.test.ts:117–118  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

115 try {
116 const fn = (name: string) => cg.getNodesByKind('function').find((n) => n.name === name)!;
117 const callees = (name: string) =>
118 cg.getCallees(fn(name).id).filter((r) => r.edge.kind === 'calls').map((r) => r.node.filePath);
119 expect(callees('unit')).toEqual([]);
120 expect(callees('caller')).toEqual(['decoy.cpp']);
121 } finally {

Callers 1

Calls 3

mapMethod · 0.80
fnFunction · 0.70
getCalleesMethod · 0.45

Tested by

no test coverage detected