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

Function callTargets

__tests__/resolution.test.ts:1623–1627  ·  view source on GitHub ↗
(fnName: string)

Source from the content-addressed store, hash-verified

1621 (n) => n.name === 'log' && n.filePath.replace(/\\/g, '/').endsWith(`${dir}/svc.cpp`),
1622 )!;
1623 const callTargets = (fnName: string) =>
1624 cg
1625 .getOutgoingEdges(cg.getNodesByKind('function').find((n) => n.name === fnName)!.id)
1626 .filter((e) => e.kind === 'calls')
1627 .map((e) => e.target);
1628
1629 const logA = logInDir('a');
1630 const logB = logInDir('b');

Callers 1

resolution.test.tsFile · 0.85

Calls 2

getNodesByKindMethod · 0.65
getOutgoingEdgesMethod · 0.45

Tested by

no test coverage detected