()
| 4 | import { createWorktreePool } from "./worktree-pool"; |
| 5 | |
| 6 | function fakeRuntime(): { runtime: ReviewGitRuntime; commands: string[][] } { |
| 7 | const commands: string[][] = []; |
| 8 | const runtime: ReviewGitRuntime = { |
| 9 | async runGit(args) { |
| 10 | commands.push(args); |
| 11 | return { stdout: "", stderr: "", exitCode: 0 }; |
| 12 | }, |
| 13 | async readTextFile() { return null; }, |
| 14 | }; |
| 15 | return { runtime, commands }; |
| 16 | } |
| 17 | |
| 18 | function makeMetadata(number: number, baseBranch = "main"): PRMetadata { |
| 19 | return { |