...

Source file src/github.com/redhat-developer/odo/pkg/exec/mock.go

Documentation: github.com/redhat-developer/odo/pkg/exec

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: pkg/exec/interface.go
     3  
     4  // Package exec is a generated GoMock package.
     5  package exec
     6  
     7  import (
     8  	context "context"
     9  	io "io"
    10  	reflect "reflect"
    11  
    12  	gomock "github.com/golang/mock/gomock"
    13  )
    14  
    15  // MockClient is a mock of Client interface.
    16  type MockClient struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockClientMockRecorder
    19  }
    20  
    21  // MockClientMockRecorder is the mock recorder for MockClient.
    22  type MockClientMockRecorder struct {
    23  	mock *MockClient
    24  }
    25  
    26  // NewMockClient creates a new mock instance.
    27  func NewMockClient(ctrl *gomock.Controller) *MockClient {
    28  	mock := &MockClient{ctrl: ctrl}
    29  	mock.recorder = &MockClientMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockClient) EXPECT() *MockClientMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // ExecuteCommand mocks base method.
    39  func (m *MockClient) ExecuteCommand(ctx context.Context, command []string, podName, containerName string, show bool, stdoutWriter, stderrWriter *io.PipeWriter) ([]string, []string, error) {
    40  	m.ctrl.T.Helper()
    41  	ret := m.ctrl.Call(m, "ExecuteCommand", ctx, command, podName, containerName, show, stdoutWriter, stderrWriter)
    42  	ret0, _ := ret[0].([]string)
    43  	ret1, _ := ret[1].([]string)
    44  	ret2, _ := ret[2].(error)
    45  	return ret0, ret1, ret2
    46  }
    47  
    48  // ExecuteCommand indicates an expected call of ExecuteCommand.
    49  func (mr *MockClientMockRecorder) ExecuteCommand(ctx, command, podName, containerName, show, stdoutWriter, stderrWriter interface{}) *gomock.Call {
    50  	mr.mock.ctrl.T.Helper()
    51  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteCommand", reflect.TypeOf((*MockClient)(nil).ExecuteCommand), ctx, command, podName, containerName, show, stdoutWriter, stderrWriter)
    52  }
    53  

View as plain text