...

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

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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: pkg/dev/interface.go
     3  
     4  // Package dev is a generated GoMock package.
     5  package dev
     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  // CleanupResources mocks base method.
    39  func (m *MockClient) CleanupResources(ctx context.Context, out io.Writer) error {
    40  	m.ctrl.T.Helper()
    41  	ret := m.ctrl.Call(m, "CleanupResources", ctx, out)
    42  	ret0, _ := ret[0].(error)
    43  	return ret0
    44  }
    45  
    46  // CleanupResources indicates an expected call of CleanupResources.
    47  func (mr *MockClientMockRecorder) CleanupResources(ctx, out interface{}) *gomock.Call {
    48  	mr.mock.ctrl.T.Helper()
    49  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CleanupResources", reflect.TypeOf((*MockClient)(nil).CleanupResources), ctx, out)
    50  }
    51  
    52  // Run mocks base method.
    53  func (m *MockClient) Run(ctx context.Context, commandName string) error {
    54  	m.ctrl.T.Helper()
    55  	ret := m.ctrl.Call(m, "Run", ctx, commandName)
    56  	ret0, _ := ret[0].(error)
    57  	return ret0
    58  }
    59  
    60  // Run indicates an expected call of Run.
    61  func (mr *MockClientMockRecorder) Run(ctx, commandName interface{}) *gomock.Call {
    62  	mr.mock.ctrl.T.Helper()
    63  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockClient)(nil).Run), ctx, commandName)
    64  }
    65  
    66  // Start mocks base method.
    67  func (m *MockClient) Start(ctx context.Context, options StartOptions) error {
    68  	m.ctrl.T.Helper()
    69  	ret := m.ctrl.Call(m, "Start", ctx, options)
    70  	ret0, _ := ret[0].(error)
    71  	return ret0
    72  }
    73  
    74  // Start indicates an expected call of Start.
    75  func (mr *MockClientMockRecorder) Start(ctx, options interface{}) *gomock.Call {
    76  	mr.mock.ctrl.T.Helper()
    77  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockClient)(nil).Start), ctx, options)
    78  }
    79  

View as plain text