github.com/kubeshop/testkube@v1.17.23/pkg/cloud/data/executor/mock_executor.go (about)

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