github.com/unionj-cloud/go-doudou@v1.3.8-0.20221011095552-0088008e5b31/framework/http/mock/mock_goresilience_runner_interface.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: ./goresilience_runner_interface.go 3 4 // Package mock is a generated GoMock package. 5 package mock 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 goresilience "github.com/slok/goresilience" 13 ) 14 15 // MockRunner is a mock of Runner interface. 16 type MockRunner struct { 17 ctrl *gomock.Controller 18 recorder *MockRunnerMockRecorder 19 } 20 21 // MockRunnerMockRecorder is the mock recorder for MockRunner. 22 type MockRunnerMockRecorder struct { 23 mock *MockRunner 24 } 25 26 // NewMockRunner creates a new mock instance. 27 func NewMockRunner(ctrl *gomock.Controller) *MockRunner { 28 mock := &MockRunner{ctrl: ctrl} 29 mock.recorder = &MockRunnerMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockRunner) EXPECT() *MockRunnerMockRecorder { 35 return m.recorder 36 } 37 38 // Run mocks base method. 39 func (m *MockRunner) Run(ctx context.Context, f goresilience.Func) error { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "Run", ctx, f) 42 ret0, _ := ret[0].(error) 43 return ret0 44 } 45 46 // Run indicates an expected call of Run. 47 func (mr *MockRunnerMockRecorder) Run(ctx, f interface{}) *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockRunner)(nil).Run), ctx, f) 50 }