MCPcopy Index your code
hub / github.com/coder/agentapi / defaultCmdFn

Function defaultCmdFn

e2e/echo_test.go:310–312  ·  view source on GitHub ↗
(ctx context.Context, t testing.TB, serverPort int, binaryPath, cwd, scriptFilePath string)

Source from the content-addressed store, hash-verified

308}
309
310func defaultCmdFn(ctx context.Context, t testing.TB, serverPort int, binaryPath, cwd, scriptFilePath string) (string, []string) {
311 return binaryPath, []string{"server", fmt.Sprintf("--port=%d", serverPort), "--", "go", "run", filepath.Join(cwd, "echo.go"), scriptFilePath}
312}
313
314func stateCmdFn(stateFile, initialPrompt string) func(ctx context.Context, t testing.TB, serverPort int, binaryPath, cwd, scriptFilePath string) (string, []string) {
315 return func(ctx context.Context, t testing.TB, serverPort int, binaryPath, cwd, scriptFilePath string) (string, []string) {

Callers 1

TestE2EFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected