(dir: string)
| 40 | } |
| 41 | |
| 42 | function graphCounts(dir: string): { nodes: number; edges: number } { |
| 43 | const cg = CodeGraph.openSync(dir); |
| 44 | try { |
| 45 | const stats = cg.getStats(); |
| 46 | return { nodes: stats.nodeCount, edges: stats.edgeCount }; |
| 47 | } finally { |
| 48 | cg.close(); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | describe('codegraph index — full re-index keeps the graph populated (#874)', () => { |
| 53 | let tempDir: string; |
no test coverage detected