(file: string)
| 15 | cg = await CodeGraph.init(root, { index: true }); |
| 16 | } |
| 17 | function targets(file: string) { |
| 18 | const caller = cg!.getNodesByKind('method').find(n => n.filePath === `src/${file}` && n.qualifiedName === 'Target::run'); |
| 19 | expect(caller).toBeDefined(); |
| 20 | return cg!.getOutgoingEdges(caller!.id).filter(e => e.kind === 'calls').map(e => { |
| 21 | const target = cg!.getNode(e.target)!; |
| 22 | return `${target.filePath}:${target.qualifiedName}`; |
| 23 | }); |
| 24 | } |
| 25 | |
| 26 | it('does not borrow a missing method from a same-named type in another module (#1861)', async () => { |
| 27 | await index({ |
no test coverage detected