(root: string, files: Record<string, string>)
| 829 | // ============================================================================= |
| 830 | |
| 831 | function writeFiles(root: string, files: Record<string, string>): void { |
| 832 | for (const [rel, content] of Object.entries(files)) { |
| 833 | fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true }); |
| 834 | fs.writeFileSync(path.join(root, rel), content); |
| 835 | } |
| 836 | } |
| 837 | |
| 838 | async function indexProject(files: Record<string, string>): Promise<{ root: string; cg: CodeGraph }> { |
| 839 | const root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-rr-tables-')); |
no test coverage detected