MCPcopy Index your code
hub / github.com/coder/coder / fakeExecer

Struct fakeExecer

agent/agentcontainers/api_test.go:485–488  ·  view source on GitHub ↗

fakeExecer implements agentexec.Execer for testing and tracks execution details.

Source from the content-addressed store, hash-verified

483
484// fakeExecer implements agentexec.Execer for testing and tracks execution details.
485type fakeExecer struct {
486 commands [][]string
487 createdCommands []*exec.Cmd
488}
489
490func (f *fakeExecer) CommandContext(ctx context.Context, cmd string, args ...string) *exec.Cmd {
491 f.commands = append(f.commands, append([]string{cmd}, args...))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected