Rows as `caller -> callee`, which is how the rail reads.
(payload: any)
| 75 | |
| 76 | /** Rows as `caller -> callee`, which is how the rail reads. */ |
| 77 | function pairs(payload: any): string[] { |
| 78 | const names = new Map<string, string>( |
| 79 | payload.outline.items.map((e: any) => [e.id, e.name] as [string, string]) |
| 80 | ); |
| 81 | return payload.calls.items.map( |
| 82 | (c: any) => `${names.get(c.ownerId) ?? 'file'} -> ${c.relation.node.name}` |
| 83 | ); |
| 84 | } |
| 85 | |
| 86 | beforeAll(async () => { |
| 87 | tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-ui-filecode-')); |
no test coverage detected