(files: Record<string, string>)
| 17 | let cg: CodeGraph | null = null; |
| 18 | |
| 19 | async function index(files: Record<string, string>): Promise<CodeGraph> { |
| 20 | tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-2963-')); |
| 21 | write(files); |
| 22 | cg = await CodeGraph.init(tempDir, { index: true }); |
| 23 | return cg; |
| 24 | } |
| 25 | |
| 26 | function write(files: Record<string, string>): void { |
| 27 | for (const [rel, source] of Object.entries(files)) { |
no test coverage detected