MockCommandExecutor é o nosso mock para a interface CommandExecutor.
| 10 | |
| 11 | // MockCommandExecutor é o nosso mock para a interface CommandExecutor. |
| 12 | type MockCommandExecutor struct { |
| 13 | mock.Mock |
| 14 | } |
| 15 | |
| 16 | func (m *MockCommandExecutor) Run(name string, arg ...string) error { |
| 17 | args := m.Called(name, arg) |
nothing calls this directly
no outgoing calls
no test coverage detected