...

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

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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: pkg/project/project.go
     3  
     4  // Package project is a generated GoMock package.
     5  package project
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	gomock "github.com/golang/mock/gomock"
    11  )
    12  
    13  // MockClient is a mock of Client interface.
    14  type MockClient struct {
    15  	ctrl     *gomock.Controller
    16  	recorder *MockClientMockRecorder
    17  }
    18  
    19  // MockClientMockRecorder is the mock recorder for MockClient.
    20  type MockClientMockRecorder struct {
    21  	mock *MockClient
    22  }
    23  
    24  // NewMockClient creates a new mock instance.
    25  func NewMockClient(ctrl *gomock.Controller) *MockClient {
    26  	mock := &MockClient{ctrl: ctrl}
    27  	mock.recorder = &MockClientMockRecorder{mock}
    28  	return mock
    29  }
    30  
    31  // EXPECT returns an object that allows the caller to indicate expected use.
    32  func (m *MockClient) EXPECT() *MockClientMockRecorder {
    33  	return m.recorder
    34  }
    35  
    36  // Create mocks base method.
    37  func (m *MockClient) Create(projectName string, wait bool) error {
    38  	m.ctrl.T.Helper()
    39  	ret := m.ctrl.Call(m, "Create", projectName, wait)
    40  	ret0, _ := ret[0].(error)
    41  	return ret0
    42  }
    43  
    44  // Create indicates an expected call of Create.
    45  func (mr *MockClientMockRecorder) Create(projectName, wait interface{}) *gomock.Call {
    46  	mr.mock.ctrl.T.Helper()
    47  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockClient)(nil).Create), projectName, wait)
    48  }
    49  
    50  // Delete mocks base method.
    51  func (m *MockClient) Delete(projectName string, wait bool) error {
    52  	m.ctrl.T.Helper()
    53  	ret := m.ctrl.Call(m, "Delete", projectName, wait)
    54  	ret0, _ := ret[0].(error)
    55  	return ret0
    56  }
    57  
    58  // Delete indicates an expected call of Delete.
    59  func (mr *MockClientMockRecorder) Delete(projectName, wait interface{}) *gomock.Call {
    60  	mr.mock.ctrl.T.Helper()
    61  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockClient)(nil).Delete), projectName, wait)
    62  }
    63  
    64  // Exists mocks base method.
    65  func (m *MockClient) Exists(projectName string) (bool, error) {
    66  	m.ctrl.T.Helper()
    67  	ret := m.ctrl.Call(m, "Exists", projectName)
    68  	ret0, _ := ret[0].(bool)
    69  	ret1, _ := ret[1].(error)
    70  	return ret0, ret1
    71  }
    72  
    73  // Exists indicates an expected call of Exists.
    74  func (mr *MockClientMockRecorder) Exists(projectName interface{}) *gomock.Call {
    75  	mr.mock.ctrl.T.Helper()
    76  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Exists", reflect.TypeOf((*MockClient)(nil).Exists), projectName)
    77  }
    78  
    79  // List mocks base method.
    80  func (m *MockClient) List() (ProjectList, error) {
    81  	m.ctrl.T.Helper()
    82  	ret := m.ctrl.Call(m, "List")
    83  	ret0, _ := ret[0].(ProjectList)
    84  	ret1, _ := ret[1].(error)
    85  	return ret0, ret1
    86  }
    87  
    88  // List indicates an expected call of List.
    89  func (mr *MockClientMockRecorder) List() *gomock.Call {
    90  	mr.mock.ctrl.T.Helper()
    91  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockClient)(nil).List))
    92  }
    93  
    94  // SetCurrent mocks base method.
    95  func (m *MockClient) SetCurrent(projectName string) error {
    96  	m.ctrl.T.Helper()
    97  	ret := m.ctrl.Call(m, "SetCurrent", projectName)
    98  	ret0, _ := ret[0].(error)
    99  	return ret0
   100  }
   101  
   102  // SetCurrent indicates an expected call of SetCurrent.
   103  func (mr *MockClientMockRecorder) SetCurrent(projectName interface{}) *gomock.Call {
   104  	mr.mock.ctrl.T.Helper()
   105  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCurrent", reflect.TypeOf((*MockClient)(nil).SetCurrent), projectName)
   106  }
   107  

View as plain text