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

Function logInDir

__tests__/resolution.test.ts:1619–1622  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

1617 cg.resolveReferences();
1618
1619 const logInDir = (dir: string) =>
1620 cg.getNodesByKind('method').find(
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)

Callers 1

resolution.test.tsFile · 0.85

Calls 1

getNodesByKindMethod · 0.65

Tested by

no test coverage detected