(file: string, line: number)
| 196 | |
| 197 | /** What the calls on `line` of `file` link to, as `qualifiedName@file:line`, sorted. */ |
| 198 | const callsAt = (file: string, line: number): string[] => { |
| 199 | const out: string[] = []; |
| 200 | for (const node of cg.getNodesInFile(file)) { |
| 201 | for (const edge of cg.getOutgoingEdges(node.id)) { |
| 202 | if (edge.kind !== 'calls' || edge.line !== line) continue; |
| 203 | const target = cg.getNode(edge.target)!; |
| 204 | out.push(`${target.qualifiedName}@${target.filePath}:${target.startLine}`); |
| 205 | } |
| 206 | } |
| 207 | return [...new Set(out)].sort(); |
| 208 | }; |
| 209 | |
| 210 | describe('a Rust call on `.as_mut()` / `.as_ref()` of a field', () => { |
| 211 | it('declared `Pin<Box<T>>` is `T`\'s method', () => { |
no test coverage detected