(root: string, files: Record<string, string>)
| 14 | import { CodeGraph } from '../src'; |
| 15 | |
| 16 | function writeTree(root: string, files: Record<string, string>): void { |
| 17 | for (const [rel, content] of Object.entries(files)) { |
| 18 | fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true }); |
| 19 | fs.writeFileSync(path.join(root, rel), content); |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | /** `<source qualified name> -> <target file>:<target qualified name>` for every `calls` edge out of `files`. */ |
| 24 | function callEdges(cg: CodeGraph, files: string[]): string[] { |
no test coverage detected