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

Function callTargets

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

Source from the content-addressed store, hash-verified

2186 (n) => n.name === 'log' && n.filePath.replace(/\\/g, '/').endsWith(`${dir}/svc.cpp`),
2187 )!;
2188 const callTargets = (fnName: string) =>
2189 cg
2190 .getOutgoingEdges(cg.getNodesByKind('function').find((n) => n.name === fnName)!.id)
2191 .filter((e) => e.kind === 'calls')
2192 .map((e) => e.target);
2193
2194 const logA = logInDir('a');
2195 const logB = logInDir('b');

Callers 1

resolution.test.tsFile · 0.70

Calls 3

mapMethod · 0.80
getNodesByKindMethod · 0.65
getOutgoingEdgesMethod · 0.45

Tested by

no test coverage detected