(snippet: string)
| 269 | |
| 270 | /** What the references on the line holding `snippet` reach: `owner::method (resolvedBy confidence)`. */ |
| 271 | const reachedAt = (snippet: string): string[] => { |
| 272 | const line = lineOf(snippet); |
| 273 | const ids = cg.getNodesInFile(FILE).map((n) => n.id); |
| 274 | return cg.getOutgoingEdgesFrom(ids) |
| 275 | .filter((e) => e.kind !== 'contains' && e.line === line) |
| 276 | .map((e) => `${cg.getNode(e.target)!.qualifiedName} (${e.metadata?.resolvedBy} ${e.metadata?.confidence})`); |
| 277 | }; |
| 278 | |
| 279 | describe('a Go receiver declared through a package', () => { |
| 280 | it('reaches the method of the type it is declared as', () => { |
no test coverage detected