(fn: string)
| 159 | |
| 160 | /** Qualified names of the methods `fn` calls. */ |
| 161 | const calls = (fn: string): string[] => { |
| 162 | const node = cg.getNodesInFile('app/m.py').find((n) => n.name === fn && n.kind === 'function')!; |
| 163 | expect(node, fn).toBeDefined(); |
| 164 | return cg.getOutgoingEdges(node.id).filter((e) => e.kind === 'calls') |
| 165 | .map((e) => cg.getNode(e.target)!).filter((n) => n.kind === 'method').map((n) => n.qualifiedName); |
| 166 | }; |
| 167 | |
| 168 | describe('a Python base list wrapped over several lines', () => { |
| 169 | // Base and Other both declare `run`, and the globals are not named after |
no test coverage detected