` : ` of every edge out of the function `fromName`, sorted.
(graph: CodeGraph, fromName: string)
| 35 | |
| 36 | /** `<kind> <target kind> <target> :<line>` of every edge out of the function `fromName`, sorted. */ |
| 37 | function edgesFrom(graph: CodeGraph, fromName: string): string[] { |
| 38 | const from = graph.getNodesByKind('function').find((n) => n.name === fromName); |
| 39 | expect(from, fromName).toBeDefined(); |
| 40 | return graph |
| 41 | .getOutgoingEdges(from!.id) |
| 42 | .filter((e) => e.kind === 'calls' || e.kind === 'instantiates' || e.kind === 'references') |
| 43 | .map((e) => { |
| 44 | const target = graph.getNode(e.target); |
| 45 | return `${e.kind} ${target?.kind} ${target?.qualifiedName} :${e.line}`; |
| 46 | }) |
| 47 | .sort(); |
| 48 | } |
| 49 | |
| 50 | describe('Go type conversions (#2581)', () => { |
| 51 | it("records the issue's `Category(s)` as a use of the type, not a call", async () => { |
no test coverage detected