MCPcopy Create free account
hub / github.com/agenticsorg/edge-agents / mockSuccessCommand

Function mockSuccessCommand

scripts/sparc2/src/git/gitIntegration.test.ts:19–30  ·  view source on GitHub ↗
(stdout: string)

Source from the content-addressed store, hash-verified

17
18// Mock successful command execution
19function mockSuccessCommand(stdout: string) {
20 return {
21 output: () =>
22 Promise.resolve({
23 success: true,
24 stdout: new TextEncoder().encode(stdout),
25 stderr: new Uint8Array(0),
26 code: 0,
27 signal: null,
28 }),
29 };
30}
31
32// Mock failed command execution
33function mockFailCommand(stderr: string) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected