| // Code generated by MockGen. DO NOT EDIT. |
| // Source: github.com/GoogleCloudPlatform/docker-credential-gcr/util/cmd (interfaces: Command) |
| |
| // Package mock_cmd is a generated GoMock package. |
| package mock_cmd |
| |
| import ( |
| gomock "github.com/golang/mock/gomock" |
| reflect "reflect" |
| ) |
| |
| // MockCommand is a mock of Command interface |
| type MockCommand struct { |
| ctrl *gomock.Controller |
| recorder *MockCommandMockRecorder |
| } |
| |
| // MockCommandMockRecorder is the mock recorder for MockCommand |
| type MockCommandMockRecorder struct { |
| mock *MockCommand |
| } |
| |
| // NewMockCommand creates a new mock instance |
| func NewMockCommand(ctrl *gomock.Controller) *MockCommand { |
| mock := &MockCommand{ctrl: ctrl} |
| mock.recorder = &MockCommandMockRecorder{mock} |
| return mock |
| } |
| |
| // EXPECT returns an object that allows the caller to indicate expected use |
| func (m *MockCommand) EXPECT() *MockCommandMockRecorder { |
| return m.recorder |
| } |
| |
| // Exec mocks base method |
| func (m *MockCommand) Exec(arg0 ...string) ([]byte, error) { |
| varargs := []interface{}{} |
| for _, a := range arg0 { |
| varargs = append(varargs, a) |
| } |
| ret := m.ctrl.Call(m, "Exec", varargs...) |
| ret0, _ := ret[0].([]byte) |
| ret1, _ := ret[1].(error) |
| return ret0, ret1 |
| } |
| |
| // Exec indicates an expected call of Exec |
| func (mr *MockCommandMockRecorder) Exec(arg0 ...interface{}) *gomock.Call { |
| return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Exec", reflect.TypeOf((*MockCommand)(nil).Exec), arg0...) |
| } |