(file: string, snippet: string, nth = 1)
| 317 | |
| 318 | /** What the calls on the line of `file` holding `snippet` reach, as qualified names. */ |
| 319 | const reachedAt = (file: string, snippet: string, nth = 1): string[] => { |
| 320 | const line = lineOf(file, snippet, nth); |
| 321 | const ids = cg.getNodesInFile(file).map((n) => n.id); |
| 322 | return cg.getOutgoingEdgesFrom(ids) |
| 323 | .filter((e) => e.kind !== 'contains' && e.line === line) |
| 324 | .map((e) => cg.getNode(e.target)!.qualifiedName); |
| 325 | }; |
| 326 | |
| 327 | describe('a dotted Go call is written through its own receiver', () => { |
| 328 | it('whatever else on the line spells the name', () => { |
no test coverage detected