(ctx context.Context, name string, args ...string)
| 17 | } |
| 18 | |
| 19 | func (m *mockExecutor) CommandContext(ctx context.Context, name string, args ...string) *exec.Cmd { |
| 20 | m.lastName = name |
| 21 | |
| 22 | m.lastArgs = append([]string(nil), args...) |
| 23 | m.called++ |
| 24 | |
| 25 | return exec.CommandContext(ctx, "true") |
| 26 | } |
| 27 | |
| 28 | func TestSSHClient_WithExecutor(t *testing.T) { |
| 29 | me := &mockExecutor{} |
nothing calls this directly
no test coverage detected