MockSSHClient is a mock implementation for testing
| 400 | |
| 401 | // MockSSHClient is a mock implementation for testing |
| 402 | type MockSSHClient struct { |
| 403 | ExecuteFunc func(ctx context.Context, host, command string) (string, error) |
| 404 | ExecuteContainerFunc func(ctx context.Context, host string, containerID int, command string) (string, error) |
| 405 | } |
| 406 | |
| 407 | // ExecuteCommand calls the mock function |
| 408 | func (m *MockSSHClient) ExecuteCommand(ctx context.Context, host, command string) (string, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected