github.com/uber/kraken@v0.1.4/mocks/lib/persistedretry/executor.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/uber/kraken/lib/persistedretry (interfaces: Executor) 3 4 // Package mockpersistedretry is a generated GoMock package. 5 package mockpersistedretry 6 7 import ( 8 gomock "github.com/golang/mock/gomock" 9 persistedretry "github.com/uber/kraken/lib/persistedretry" 10 reflect "reflect" 11 ) 12 13 // MockExecutor is a mock of Executor interface 14 type MockExecutor struct { 15 ctrl *gomock.Controller 16 recorder *MockExecutorMockRecorder 17 } 18 19 // MockExecutorMockRecorder is the mock recorder for MockExecutor 20 type MockExecutorMockRecorder struct { 21 mock *MockExecutor 22 } 23 24 // NewMockExecutor creates a new mock instance 25 func NewMockExecutor(ctrl *gomock.Controller) *MockExecutor { 26 mock := &MockExecutor{ctrl: ctrl} 27 mock.recorder = &MockExecutorMockRecorder{mock} 28 return mock 29 } 30 31 // EXPECT returns an object that allows the caller to indicate expected use 32 func (m *MockExecutor) EXPECT() *MockExecutorMockRecorder { 33 return m.recorder 34 } 35 36 // Exec mocks base method 37 func (m *MockExecutor) Exec(arg0 persistedretry.Task) error { 38 m.ctrl.T.Helper() 39 ret := m.ctrl.Call(m, "Exec", arg0) 40 ret0, _ := ret[0].(error) 41 return ret0 42 } 43 44 // Exec indicates an expected call of Exec 45 func (mr *MockExecutorMockRecorder) Exec(arg0 interface{}) *gomock.Call { 46 mr.mock.ctrl.T.Helper() 47 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Exec", reflect.TypeOf((*MockExecutor)(nil).Exec), arg0) 48 } 49 50 // Name mocks base method 51 func (m *MockExecutor) Name() string { 52 m.ctrl.T.Helper() 53 ret := m.ctrl.Call(m, "Name") 54 ret0, _ := ret[0].(string) 55 return ret0 56 } 57 58 // Name indicates an expected call of Name 59 func (mr *MockExecutorMockRecorder) Name() *gomock.Call { 60 mr.mock.ctrl.T.Helper() 61 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockExecutor)(nil).Name)) 62 }