(prefix: string, files: Record<string, string>)
| 21 | import { CodeGraph } from '../src'; |
| 22 | |
| 23 | function writeProject(prefix: string, files: Record<string, string>): string { |
| 24 | const root = fs.mkdtempSync(path.join(os.tmpdir(), prefix)); |
| 25 | for (const [rel, content] of Object.entries(files)) { |
| 26 | fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true }); |
| 27 | fs.writeFileSync(path.join(root, rel), content); |
| 28 | } |
| 29 | return root; |
| 30 | } |
| 31 | |
| 32 | /** The edges carrying a call's name out of the function or method `qualifiedName` in `file`. */ |
| 33 | function callEdgesFrom(cg: CodeGraph, file: string, qualifiedName: string) { |
no test coverage detected