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

Function index

__tests__/codeigniter.test.ts:278–281  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

276 return cg.getOutgoingEdges(node.id).filter((e) => e.kind === 'references').map((e) => cg.getNode(e.target)?.qualifiedName)[0];
277 };
278 const index = (): string[] => {
279 const node = cg.getNodesInFile('application/controllers/Welcome.php').find((n) => n.name === 'index')!;
280 return cg.getCallees(node.id).map((c) => c.node.qualifiedName);
281 };
282 expect(route()).toBeUndefined();
283 expect(index()).toEqual([]);
284

Callers 1

Calls 3

mapMethod · 0.80
getNodesInFileMethod · 0.65
getCalleesMethod · 0.45

Tested by

no test coverage detected