MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / processThatNeverExits

Function processThatNeverExits

packages/agent-core/test/tools/bash.test.ts:168–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166}
167
168function processThatNeverExits(): KaosProcess {
169 const stdout = new PassThrough();
170 const stderr = new PassThrough();
171 return {
172 stdin: { end: vi.fn(), write: vi.fn() } as unknown as Writable,
173 stdout,
174 stderr,
175 pid: 126,
176 exitCode: null,
177 wait: vi.fn(async () => new Promise<number>(() => {})),
178 kill: vi.fn(async () => {}),
179 dispose: vi.fn(async () => {
180 stdout.destroy();
181 stderr.destroy();
182 }),
183 };
184}
185
186function processWithStreamError(options: {
187 readonly stdoutError?: Error;

Callers 1

bash.test.tsFile · 0.85

Calls 1

destroyMethod · 0.80

Tested by

no test coverage detected