MCPcopy Create free account
hub / github.com/backnotprop/plannotator / fakeRuntime

Function fakeRuntime

packages/shared/worktree-pool.test.ts:6–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { createWorktreePool } from "./worktree-pool";
5
6function 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
18function makeMetadata(number: number, baseBranch = "main"): PRMetadata {
19 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected