`calls` callees of a function, as `kind qualifiedName (file)`.
(cg: CodeGraph, caller: string)
| 47 | |
| 48 | /** `calls` callees of a function, as `kind qualifiedName (file)`. */ |
| 49 | function calls(cg: CodeGraph, caller: string): string[] { |
| 50 | return cg |
| 51 | .getCallees(fn(cg, caller).id) |
| 52 | .filter((r) => r.edge.kind === 'calls') |
| 53 | .map((r) => `${r.node.kind} ${r.node.qualifiedName} (${r.node.filePath})`) |
| 54 | .sort(); |
| 55 | } |
| 56 | |
| 57 | describe('#1838 — a macro invocation is not a call to a same-named function', () => { |
| 58 | it('reproduction: the macro from an included header does not bind to the decoy function', async () => { |
no test coverage detected