(file: string)
| 358 | |
| 359 | /** `qualifiedName (file)` of every call the file's symbols make. */ |
| 360 | const callsFrom = (file: string): string[] => { |
| 361 | const ids = cg.getNodesInFile(file).map((n) => n.id); |
| 362 | return cg.getOutgoingEdgesFrom(ids).filter((e) => e.kind === 'calls').map((e) => { |
| 363 | const target = cg.getNode(e.target)!; |
| 364 | return `${target.qualifiedName} (${target.filePath})`; |
| 365 | }); |
| 366 | }; |
| 367 | |
| 368 | describe('a C/C++ reference links what its translation unit declares', () => { |
| 369 | it('calls the C function its includes declare, not a bundled copy', () => { |
no test coverage detected