The functions `name` calls.
(cg: CodeGraph | undefined, name: string)
| 208 | |
| 209 | /** The functions `name` calls. */ |
| 210 | function calls(cg: CodeGraph | undefined, name: string): string[] { |
| 211 | const from = cg!.getNodesByKind('function').find((n) => n.name === name); |
| 212 | return cg! |
| 213 | .getOutgoingEdges(from!.id) |
| 214 | .filter((e) => e.kind === 'calls') |
| 215 | .map((e) => cg!.getNode(e.target)!.qualifiedName) |
| 216 | .sort(); |
| 217 | } |
| 218 | |
| 219 | describe('Python', () => { |
| 220 | it('does not take an attribute handed to a call for the function of its name', () => { |
no test coverage detected