github.com/kubeshop/testkube@v1.17.23/pkg/executor/client/mock_executor.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/kubeshop/testkube/pkg/executor/client (interfaces: Executor) 3 4 // Package client is a generated GoMock package. 5 package client 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 testkube "github.com/kubeshop/testkube/pkg/api/v1/testkube" 13 output "github.com/kubeshop/testkube/pkg/executor/output" 14 ) 15 16 // MockExecutor is a mock of Executor interface. 17 type MockExecutor struct { 18 ctrl *gomock.Controller 19 recorder *MockExecutorMockRecorder 20 } 21 22 // MockExecutorMockRecorder is the mock recorder for MockExecutor. 23 type MockExecutorMockRecorder struct { 24 mock *MockExecutor 25 } 26 27 // NewMockExecutor creates a new mock instance. 28 func NewMockExecutor(ctrl *gomock.Controller) *MockExecutor { 29 mock := &MockExecutor{ctrl: ctrl} 30 mock.recorder = &MockExecutorMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use. 35 func (m *MockExecutor) EXPECT() *MockExecutorMockRecorder { 36 return m.recorder 37 } 38 39 // Abort mocks base method. 40 func (m *MockExecutor) Abort(arg0 context.Context, arg1 *testkube.Execution) (*testkube.ExecutionResult, error) { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "Abort", arg0, arg1) 43 ret0, _ := ret[0].(*testkube.ExecutionResult) 44 ret1, _ := ret[1].(error) 45 return ret0, ret1 46 } 47 48 // Abort indicates an expected call of Abort. 49 func (mr *MockExecutorMockRecorder) Abort(arg0, arg1 interface{}) *gomock.Call { 50 mr.mock.ctrl.T.Helper() 51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Abort", reflect.TypeOf((*MockExecutor)(nil).Abort), arg0, arg1) 52 } 53 54 // Execute mocks base method. 55 func (m *MockExecutor) Execute(arg0 context.Context, arg1 *testkube.Execution, arg2 ExecuteOptions) (*testkube.ExecutionResult, error) { 56 m.ctrl.T.Helper() 57 ret := m.ctrl.Call(m, "Execute", arg0, arg1, arg2) 58 ret0, _ := ret[0].(*testkube.ExecutionResult) 59 ret1, _ := ret[1].(error) 60 return ret0, ret1 61 } 62 63 // Execute indicates an expected call of Execute. 64 func (mr *MockExecutorMockRecorder) Execute(arg0, arg1, arg2 interface{}) *gomock.Call { 65 mr.mock.ctrl.T.Helper() 66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Execute", reflect.TypeOf((*MockExecutor)(nil).Execute), arg0, arg1, arg2) 67 } 68 69 // Logs mocks base method. 70 func (m *MockExecutor) Logs(arg0 context.Context, arg1, arg2 string) (chan output.Output, error) { 71 m.ctrl.T.Helper() 72 ret := m.ctrl.Call(m, "Logs", arg0, arg1, arg2) 73 ret0, _ := ret[0].(chan output.Output) 74 ret1, _ := ret[1].(error) 75 return ret0, ret1 76 } 77 78 // Logs indicates an expected call of Logs. 79 func (mr *MockExecutorMockRecorder) Logs(arg0, arg1, arg2 interface{}) *gomock.Call { 80 mr.mock.ctrl.T.Helper() 81 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Logs", reflect.TypeOf((*MockExecutor)(nil).Logs), arg0, arg1, arg2) 82 }