(files: Record<string, string>)
| 30 | }); |
| 31 | |
| 32 | function write(files: Record<string, string>): void { |
| 33 | for (const [rel, content] of Object.entries(files)) { |
| 34 | const abs = path.join(tempDir, rel); |
| 35 | fs.mkdirSync(path.dirname(abs), { recursive: true }); |
| 36 | fs.writeFileSync(abs, content); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | /** `kind` edges leaving `fnName` in `file`, as `name@file` of each target. */ |
| 41 | function targets(fnName: string, file: string, kind: 'calls' | 'imports'): string[] { |
no test coverage detected