(root: string, files: Record<string, string>)
| 25 | const graphs: Record<'issue' | 'chains', CodeGraph> = {} as never; |
| 26 | |
| 27 | function write(root: string, files: Record<string, string>): void { |
| 28 | for (const [rel, content] of Object.entries(files)) { |
| 29 | fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true }); |
| 30 | fs.writeFileSync(path.join(root, rel), content); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | async function index(name: keyof typeof graphs, files: Record<string, string>): Promise<void> { |
| 35 | const root = fs.mkdtempSync(path.join(os.tmpdir(), `cg-rust-chain-${name}-`)); |
no test coverage detected