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

Function calls

__tests__/cpp-container-accessor-calls.test.ts:102–106  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

100
101 /** `calls` callees of the function `name`, as `qualifiedName`. */
102 const calls = (name: string): string[] => {
103 const caller = cg.getNodesByKind('function').find((n: Node) => n.name === name);
104 expect(caller, name).toBeDefined();
105 return cg.getCallees(caller!.id).filter((r) => r.edge.kind === 'calls').map((r) => r.node.qualifiedName).sort();
106 };
107
108 it("a sequence's front(), back() and at(i)", () => {
109 expect(calls('Front')).toEqual(['Buffer::Flush']);

Calls 3

mapMethod · 0.80
getNodesByKindMethod · 0.65
getCalleesMethod · 0.45

Tested by

no test coverage detected