(root: string, file: string, source: string)
| 18 | const graphs: CodeGraph[] = []; |
| 19 | |
| 20 | function write(root: string, file: string, source: string): void { |
| 21 | const target = path.join(root, file); |
| 22 | fs.mkdirSync(path.dirname(target), { recursive: true }); |
| 23 | fs.writeFileSync(target, source); |
| 24 | } |
| 25 | |
| 26 | async function index(files: Record<string, string>): Promise<{ root: string; graph: CodeGraph }> { |
| 27 | const root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-tauri-')); |
no test coverage detected