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