github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/service/mocks/service.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/juju/service (interfaces: Service) 3 // 4 // Generated by this command: 5 // 6 // mockgen -package mocks -destination mocks/service.go github.com/juju/juju/service Service 7 // 8 9 // Package mocks is a generated GoMock package. 10 package mocks 11 12 import ( 13 reflect "reflect" 14 15 common "github.com/juju/juju/service/common" 16 gomock "go.uber.org/mock/gomock" 17 ) 18 19 // MockService is a mock of Service interface. 20 type MockService struct { 21 ctrl *gomock.Controller 22 recorder *MockServiceMockRecorder 23 } 24 25 // MockServiceMockRecorder is the mock recorder for MockService. 26 type MockServiceMockRecorder struct { 27 mock *MockService 28 } 29 30 // NewMockService creates a new mock instance. 31 func NewMockService(ctrl *gomock.Controller) *MockService { 32 mock := &MockService{ctrl: ctrl} 33 mock.recorder = &MockServiceMockRecorder{mock} 34 return mock 35 } 36 37 // EXPECT returns an object that allows the caller to indicate expected use. 38 func (m *MockService) EXPECT() *MockServiceMockRecorder { 39 return m.recorder 40 } 41 42 // Conf mocks base method. 43 func (m *MockService) Conf() common.Conf { 44 m.ctrl.T.Helper() 45 ret := m.ctrl.Call(m, "Conf") 46 ret0, _ := ret[0].(common.Conf) 47 return ret0 48 } 49 50 // Conf indicates an expected call of Conf. 51 func (mr *MockServiceMockRecorder) Conf() *gomock.Call { 52 mr.mock.ctrl.T.Helper() 53 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Conf", reflect.TypeOf((*MockService)(nil).Conf)) 54 } 55 56 // Exists mocks base method. 57 func (m *MockService) Exists() (bool, error) { 58 m.ctrl.T.Helper() 59 ret := m.ctrl.Call(m, "Exists") 60 ret0, _ := ret[0].(bool) 61 ret1, _ := ret[1].(error) 62 return ret0, ret1 63 } 64 65 // Exists indicates an expected call of Exists. 66 func (mr *MockServiceMockRecorder) Exists() *gomock.Call { 67 mr.mock.ctrl.T.Helper() 68 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Exists", reflect.TypeOf((*MockService)(nil).Exists)) 69 } 70 71 // Install mocks base method. 72 func (m *MockService) Install() error { 73 m.ctrl.T.Helper() 74 ret := m.ctrl.Call(m, "Install") 75 ret0, _ := ret[0].(error) 76 return ret0 77 } 78 79 // Install indicates an expected call of Install. 80 func (mr *MockServiceMockRecorder) Install() *gomock.Call { 81 mr.mock.ctrl.T.Helper() 82 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Install", reflect.TypeOf((*MockService)(nil).Install)) 83 } 84 85 // InstallCommands mocks base method. 86 func (m *MockService) InstallCommands() ([]string, error) { 87 m.ctrl.T.Helper() 88 ret := m.ctrl.Call(m, "InstallCommands") 89 ret0, _ := ret[0].([]string) 90 ret1, _ := ret[1].(error) 91 return ret0, ret1 92 } 93 94 // InstallCommands indicates an expected call of InstallCommands. 95 func (mr *MockServiceMockRecorder) InstallCommands() *gomock.Call { 96 mr.mock.ctrl.T.Helper() 97 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InstallCommands", reflect.TypeOf((*MockService)(nil).InstallCommands)) 98 } 99 100 // Installed mocks base method. 101 func (m *MockService) Installed() (bool, error) { 102 m.ctrl.T.Helper() 103 ret := m.ctrl.Call(m, "Installed") 104 ret0, _ := ret[0].(bool) 105 ret1, _ := ret[1].(error) 106 return ret0, ret1 107 } 108 109 // Installed indicates an expected call of Installed. 110 func (mr *MockServiceMockRecorder) Installed() *gomock.Call { 111 mr.mock.ctrl.T.Helper() 112 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Installed", reflect.TypeOf((*MockService)(nil).Installed)) 113 } 114 115 // Name mocks base method. 116 func (m *MockService) Name() string { 117 m.ctrl.T.Helper() 118 ret := m.ctrl.Call(m, "Name") 119 ret0, _ := ret[0].(string) 120 return ret0 121 } 122 123 // Name indicates an expected call of Name. 124 func (mr *MockServiceMockRecorder) Name() *gomock.Call { 125 mr.mock.ctrl.T.Helper() 126 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockService)(nil).Name)) 127 } 128 129 // Remove mocks base method. 130 func (m *MockService) Remove() error { 131 m.ctrl.T.Helper() 132 ret := m.ctrl.Call(m, "Remove") 133 ret0, _ := ret[0].(error) 134 return ret0 135 } 136 137 // Remove indicates an expected call of Remove. 138 func (mr *MockServiceMockRecorder) Remove() *gomock.Call { 139 mr.mock.ctrl.T.Helper() 140 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Remove", reflect.TypeOf((*MockService)(nil).Remove)) 141 } 142 143 // Running mocks base method. 144 func (m *MockService) Running() (bool, error) { 145 m.ctrl.T.Helper() 146 ret := m.ctrl.Call(m, "Running") 147 ret0, _ := ret[0].(bool) 148 ret1, _ := ret[1].(error) 149 return ret0, ret1 150 } 151 152 // Running indicates an expected call of Running. 153 func (mr *MockServiceMockRecorder) Running() *gomock.Call { 154 mr.mock.ctrl.T.Helper() 155 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Running", reflect.TypeOf((*MockService)(nil).Running)) 156 } 157 158 // Start mocks base method. 159 func (m *MockService) Start() error { 160 m.ctrl.T.Helper() 161 ret := m.ctrl.Call(m, "Start") 162 ret0, _ := ret[0].(error) 163 return ret0 164 } 165 166 // Start indicates an expected call of Start. 167 func (mr *MockServiceMockRecorder) Start() *gomock.Call { 168 mr.mock.ctrl.T.Helper() 169 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockService)(nil).Start)) 170 } 171 172 // StartCommands mocks base method. 173 func (m *MockService) StartCommands() ([]string, error) { 174 m.ctrl.T.Helper() 175 ret := m.ctrl.Call(m, "StartCommands") 176 ret0, _ := ret[0].([]string) 177 ret1, _ := ret[1].(error) 178 return ret0, ret1 179 } 180 181 // StartCommands indicates an expected call of StartCommands. 182 func (mr *MockServiceMockRecorder) StartCommands() *gomock.Call { 183 mr.mock.ctrl.T.Helper() 184 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartCommands", reflect.TypeOf((*MockService)(nil).StartCommands)) 185 } 186 187 // Stop mocks base method. 188 func (m *MockService) Stop() error { 189 m.ctrl.T.Helper() 190 ret := m.ctrl.Call(m, "Stop") 191 ret0, _ := ret[0].(error) 192 return ret0 193 } 194 195 // Stop indicates an expected call of Stop. 196 func (mr *MockServiceMockRecorder) Stop() *gomock.Call { 197 mr.mock.ctrl.T.Helper() 198 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockService)(nil).Stop)) 199 } 200 201 // WriteService mocks base method. 202 func (m *MockService) WriteService() error { 203 m.ctrl.T.Helper() 204 ret := m.ctrl.Call(m, "WriteService") 205 ret0, _ := ret[0].(error) 206 return ret0 207 } 208 209 // WriteService indicates an expected call of WriteService. 210 func (mr *MockServiceMockRecorder) WriteService() *gomock.Call { 211 mr.mock.ctrl.T.Helper() 212 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteService", reflect.TypeOf((*MockService)(nil).WriteService)) 213 }