` : ` of the method each `calls` edge written on `line` of `file` reaches.
(graph: CodeGraph, file: string, line: number)
| 149 | |
| 150 | /** `<qualified name>:<line>` of the method each `calls` edge written on `line` of `file` reaches. */ |
| 151 | function callsAt(graph: CodeGraph, file: string, line: number): string[] { |
| 152 | const ids = graph.getNodesInFile(file).map((n) => n.id); |
| 153 | return graph.getOutgoingEdgesFrom(ids) |
| 154 | .filter((e) => e.kind === 'calls' && e.line === line) |
| 155 | .map((e) => { const t = graph.getNode(e.target)!; return `${t.qualifiedName}:${t.startLine}`; }) |
| 156 | .sort(); |
| 157 | } |
| 158 | |
| 159 | const backends = [ |
| 160 | ['kernel', getKernel() === null], |
no test coverage detected