`file: qualified name` of every call edge out of a file.
(file: string)
| 90 | |
| 91 | /** `file: qualified name` of every call edge out of a file. */ |
| 92 | function callsFrom(file: string): string[] { |
| 93 | const ids = cg.getNodesInFile(file).map((n) => n.id); |
| 94 | return cg |
| 95 | .getOutgoingEdgesFrom(ids) |
| 96 | .filter((e) => e.kind === 'calls') |
| 97 | .map((e) => { |
| 98 | const t = cg.getNode(e.target)!; |
| 99 | return `${t.filePath}: ${t.qualifiedName}`; |
| 100 | }) |
| 101 | .sort(); |
| 102 | } |
| 103 | |
| 104 | describe('bare Lua calls through a local alias', () => { |
| 105 | it('reach the module function the alias names, and nothing for the standard library', () => { |
no test coverage detected