(files: Record<string, string>)
| 32 | }); |
| 33 | |
| 34 | async function indexed(files: Record<string, string>): Promise<CodeGraph> { |
| 35 | const root = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-cpp-scoped-class-')); |
| 36 | roots.push(root); |
| 37 | for (const [rel, content] of Object.entries(files)) { |
| 38 | fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true }); |
| 39 | fs.writeFileSync(path.join(root, rel), content); |
| 40 | } |
| 41 | return CodeGraph.init(root, { index: true }); |
| 42 | } |
| 43 | |
| 44 | const lines = (...text: string[]): string => [...text, ''].join('\n'); |
| 45 |
no test coverage detected