(file: string)
| 79 | }); |
| 80 | |
| 81 | const getTargets = (file: string) => { |
| 82 | const ids = cg.getNodesInFile(file).map((n) => n.id); |
| 83 | return [...new Set(cg.getOutgoingEdgesFrom(ids).filter((e) => e.kind === 'calls') |
| 84 | .map((e) => cg.getNode(e.target)!).filter((t) => t.name === 'get').map((t) => t.qualifiedName))]; |
| 85 | }; |
| 86 | |
| 87 | describe('Kotlin lambda receivers', () => { |
| 88 | it('a lambda passed through a typealiased function type runs on its receiver', () => { |
no test coverage detected