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