(root: string, files: Record<string, string>)
| 75 | const open: CodeGraph[] = []; |
| 76 | |
| 77 | function write(root: string, files: Record<string, string>): void { |
| 78 | for (const [rel, content] of Object.entries(files)) { |
| 79 | fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true }); |
| 80 | fs.writeFileSync(path.join(root, rel), content); |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | async function indexed(files: Record<string, string>): Promise<{ root: string; cg: CodeGraph }> { |
| 85 | const root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-parameter-flow-')); |
no test coverage detected