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

Function signatures

__tests__/cpp-macro-and-constructor-calls.test.ts:371–375  ·  view source on GitHub ↗
(caller: string)

Source from the content-addressed store, hash-verified

369 });
370 try {
371 const signatures = (caller: string) =>
372 cg
373 .getCallees(fn(cg, caller).id)
374 .filter((r) => r.edge.kind === 'calls')
375 .map((r) => r.node.signature);
376 expect(signatures('default_use')).toEqual(['()']);
377 expect(signatures('two_use')).toEqual(['(int a, int b = 2)']);
378 // `Widget(int)` and `Widget(int, int = 2)` both admit one argument.

Calls 3

mapMethod · 0.80
fnFunction · 0.70
getCalleesMethod · 0.45

Tested by

no test coverage detected