(file: string, name: string)
| 235 | |
| 236 | /** What the function `name` in `file` calls, as `kind qualifiedName file:line`. */ |
| 237 | const callsFrom = (file: string, name: string): string[] => { |
| 238 | const fn = cg.getNodesInFile(file).find((n) => n.name === name)!; |
| 239 | return cg.getOutgoingEdgesFrom([fn.id]).filter((e) => e.kind === 'calls') |
| 240 | .map((e) => cg.getNode(e.target)!).map((t) => `${t.kind} ${t.qualifiedName} ${t.filePath}:${t.startLine}`); |
| 241 | }; |
| 242 | |
| 243 | describe('Rust calls through a module path', () => { |
| 244 | it('reach the free function the module declares, never a same-named method or local fn', () => { |
no test coverage detected