(file: string, fn: string)
| 211 | |
| 212 | /** Qualified names of the methods `fn` in `file` calls. */ |
| 213 | const calls = (file: string, fn: string): string[] => { |
| 214 | const node = cg.getNodesInFile(file).find((n) => n.name === fn && n.kind === 'function')!; |
| 215 | expect(node, fn).toBeDefined(); |
| 216 | return cg.getOutgoingEdges(node.id).filter((e) => e.kind === 'calls') |
| 217 | .map((e) => cg.getNode(e.target)!).filter((n) => n.kind === 'method').map((n) => n.qualifiedName); |
| 218 | }; |
| 219 | |
| 220 | /** `file:class` of what the class `name` in `file` extends. */ |
| 221 | const bases = (file: string, name: string): string[] => { |
no test coverage detected