(fn: string)
| 121 | |
| 122 | /** Qualified names of the methods `fn` calls. */ |
| 123 | const calls = (fn: string): string[] => { |
| 124 | const node = cg.getNodesInFile('app/m.py').find((n) => n.name === fn && n.kind === 'function')!; |
| 125 | expect(node, fn).toBeDefined(); |
| 126 | return cg.getOutgoingEdges(node.id).filter((e) => e.kind === 'calls') |
| 127 | .map((e) => cg.getNode(e.target)!).filter((n) => n.kind === 'method').map((n) => n.qualifiedName); |
| 128 | }; |
| 129 | |
| 130 | // Base and Other both declare `run`, and the globals are not named after their |
| 131 | // classes, so only the class's own bases can pick one. |
no test coverage detected