github.com/iotexproject/iotex-core@v1.14.1-rc1/test/mock/mock_ioctlclient/mock_ioctlclient.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: ./ioctl/client.go 3 4 // Package mock_ioctlclient is a generated GoMock package. 5 package mock_ioctlclient 6 7 import ( 8 context "context" 9 ecdsa "crypto/ecdsa" 10 http "net/http" 11 reflect "reflect" 12 13 keystore "github.com/ethereum/go-ethereum/accounts/keystore" 14 gomock "github.com/golang/mock/gomock" 15 config "github.com/iotexproject/iotex-core/ioctl/config" 16 iotexapi "github.com/iotexproject/iotex-proto/golang/iotexapi" 17 ) 18 19 // MockClient is a mock of Client interface. 20 type MockClient struct { 21 ctrl *gomock.Controller 22 recorder *MockClientMockRecorder 23 } 24 25 // MockClientMockRecorder is the mock recorder for MockClient. 26 type MockClientMockRecorder struct { 27 mock *MockClient 28 } 29 30 // NewMockClient creates a new mock instance. 31 func NewMockClient(ctrl *gomock.Controller) *MockClient { 32 mock := &MockClient{ctrl: ctrl} 33 mock.recorder = &MockClientMockRecorder{mock} 34 return mock 35 } 36 37 // EXPECT returns an object that allows the caller to indicate expected use. 38 func (m *MockClient) EXPECT() *MockClientMockRecorder { 39 return m.recorder 40 } 41 42 // APIServiceClient mocks base method. 43 func (m *MockClient) APIServiceClient() (iotexapi.APIServiceClient, error) { 44 m.ctrl.T.Helper() 45 ret := m.ctrl.Call(m, "APIServiceClient") 46 ret0, _ := ret[0].(iotexapi.APIServiceClient) 47 ret1, _ := ret[1].(error) 48 return ret0, ret1 49 } 50 51 // APIServiceClient indicates an expected call of APIServiceClient. 52 func (mr *MockClientMockRecorder) APIServiceClient() *gomock.Call { 53 mr.mock.ctrl.T.Helper() 54 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "APIServiceClient", reflect.TypeOf((*MockClient)(nil).APIServiceClient)) 55 } 56 57 // Address mocks base method. 58 func (m *MockClient) Address(in string) (string, error) { 59 m.ctrl.T.Helper() 60 ret := m.ctrl.Call(m, "Address", in) 61 ret0, _ := ret[0].(string) 62 ret1, _ := ret[1].(error) 63 return ret0, ret1 64 } 65 66 // Address indicates an expected call of Address. 67 func (mr *MockClientMockRecorder) Address(in interface{}) *gomock.Call { 68 mr.mock.ctrl.T.Helper() 69 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Address", reflect.TypeOf((*MockClient)(nil).Address), in) 70 } 71 72 // AddressWithDefaultIfNotExist mocks base method. 73 func (m *MockClient) AddressWithDefaultIfNotExist(in string) (string, error) { 74 m.ctrl.T.Helper() 75 ret := m.ctrl.Call(m, "AddressWithDefaultIfNotExist", in) 76 ret0, _ := ret[0].(string) 77 ret1, _ := ret[1].(error) 78 return ret0, ret1 79 } 80 81 // AddressWithDefaultIfNotExist indicates an expected call of AddressWithDefaultIfNotExist. 82 func (mr *MockClientMockRecorder) AddressWithDefaultIfNotExist(in interface{}) *gomock.Call { 83 mr.mock.ctrl.T.Helper() 84 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddressWithDefaultIfNotExist", reflect.TypeOf((*MockClient)(nil).AddressWithDefaultIfNotExist), in) 85 } 86 87 // Alias mocks base method. 88 func (m *MockClient) Alias(arg0 string) (string, error) { 89 m.ctrl.T.Helper() 90 ret := m.ctrl.Call(m, "Alias", arg0) 91 ret0, _ := ret[0].(string) 92 ret1, _ := ret[1].(error) 93 return ret0, ret1 94 } 95 96 // Alias indicates an expected call of Alias. 97 func (mr *MockClientMockRecorder) Alias(arg0 interface{}) *gomock.Call { 98 mr.mock.ctrl.T.Helper() 99 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Alias", reflect.TypeOf((*MockClient)(nil).Alias), arg0) 100 } 101 102 // AliasMap mocks base method. 103 func (m *MockClient) AliasMap() map[string]string { 104 m.ctrl.T.Helper() 105 ret := m.ctrl.Call(m, "AliasMap") 106 ret0, _ := ret[0].(map[string]string) 107 return ret0 108 } 109 110 // AliasMap indicates an expected call of AliasMap. 111 func (mr *MockClientMockRecorder) AliasMap() *gomock.Call { 112 mr.mock.ctrl.T.Helper() 113 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AliasMap", reflect.TypeOf((*MockClient)(nil).AliasMap)) 114 } 115 116 // AskToConfirm mocks base method. 117 func (m *MockClient) AskToConfirm(arg0 string) (bool, error) { 118 m.ctrl.T.Helper() 119 ret := m.ctrl.Call(m, "AskToConfirm", arg0) 120 ret0, _ := ret[0].(bool) 121 ret1, _ := ret[1].(error) 122 return ret0, ret1 123 } 124 125 // AskToConfirm indicates an expected call of AskToConfirm. 126 func (mr *MockClientMockRecorder) AskToConfirm(arg0 interface{}) *gomock.Call { 127 mr.mock.ctrl.T.Helper() 128 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AskToConfirm", reflect.TypeOf((*MockClient)(nil).AskToConfirm), arg0) 129 } 130 131 // Config mocks base method. 132 func (m *MockClient) Config() config.Config { 133 m.ctrl.T.Helper() 134 ret := m.ctrl.Call(m, "Config") 135 ret0, _ := ret[0].(config.Config) 136 return ret0 137 } 138 139 // Config indicates an expected call of Config. 140 func (mr *MockClientMockRecorder) Config() *gomock.Call { 141 mr.mock.ctrl.T.Helper() 142 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Config", reflect.TypeOf((*MockClient)(nil).Config)) 143 } 144 145 // ConfigFilePath mocks base method. 146 func (m *MockClient) ConfigFilePath() string { 147 m.ctrl.T.Helper() 148 ret := m.ctrl.Call(m, "ConfigFilePath") 149 ret0, _ := ret[0].(string) 150 return ret0 151 } 152 153 // ConfigFilePath indicates an expected call of ConfigFilePath. 154 func (mr *MockClientMockRecorder) ConfigFilePath() *gomock.Call { 155 mr.mock.ctrl.T.Helper() 156 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfigFilePath", reflect.TypeOf((*MockClient)(nil).ConfigFilePath)) 157 } 158 159 // DecryptPrivateKey mocks base method. 160 func (m *MockClient) DecryptPrivateKey(arg0, arg1 string) (*ecdsa.PrivateKey, error) { 161 m.ctrl.T.Helper() 162 ret := m.ctrl.Call(m, "DecryptPrivateKey", arg0, arg1) 163 ret0, _ := ret[0].(*ecdsa.PrivateKey) 164 ret1, _ := ret[1].(error) 165 return ret0, ret1 166 } 167 168 // DecryptPrivateKey indicates an expected call of DecryptPrivateKey. 169 func (mr *MockClientMockRecorder) DecryptPrivateKey(arg0, arg1 interface{}) *gomock.Call { 170 mr.mock.ctrl.T.Helper() 171 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecryptPrivateKey", reflect.TypeOf((*MockClient)(nil).DecryptPrivateKey), arg0, arg1) 172 } 173 174 // DeleteAlias mocks base method. 175 func (m *MockClient) DeleteAlias(arg0 string) error { 176 m.ctrl.T.Helper() 177 ret := m.ctrl.Call(m, "DeleteAlias", arg0) 178 ret0, _ := ret[0].(error) 179 return ret0 180 } 181 182 // DeleteAlias indicates an expected call of DeleteAlias. 183 func (mr *MockClientMockRecorder) DeleteAlias(arg0 interface{}) *gomock.Call { 184 mr.mock.ctrl.T.Helper() 185 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAlias", reflect.TypeOf((*MockClient)(nil).DeleteAlias), arg0) 186 } 187 188 // Execute mocks base method. 189 func (m *MockClient) Execute(arg0 string) error { 190 m.ctrl.T.Helper() 191 ret := m.ctrl.Call(m, "Execute", arg0) 192 ret0, _ := ret[0].(error) 193 return ret0 194 } 195 196 // Execute indicates an expected call of Execute. 197 func (mr *MockClientMockRecorder) Execute(arg0 interface{}) *gomock.Call { 198 mr.mock.ctrl.T.Helper() 199 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Execute", reflect.TypeOf((*MockClient)(nil).Execute), arg0) 200 } 201 202 // HdwalletMnemonic mocks base method. 203 func (m *MockClient) HdwalletMnemonic(arg0 string) (string, error) { 204 m.ctrl.T.Helper() 205 ret := m.ctrl.Call(m, "HdwalletMnemonic", arg0) 206 ret0, _ := ret[0].(string) 207 ret1, _ := ret[1].(error) 208 return ret0, ret1 209 } 210 211 // HdwalletMnemonic indicates an expected call of HdwalletMnemonic. 212 func (mr *MockClientMockRecorder) HdwalletMnemonic(arg0 interface{}) *gomock.Call { 213 mr.mock.ctrl.T.Helper() 214 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HdwalletMnemonic", reflect.TypeOf((*MockClient)(nil).HdwalletMnemonic), arg0) 215 } 216 217 // Insecure mocks base method. 218 func (m *MockClient) Insecure() bool { 219 m.ctrl.T.Helper() 220 ret := m.ctrl.Call(m, "Insecure") 221 ret0, _ := ret[0].(bool) 222 return ret0 223 } 224 225 // Insecure indicates an expected call of Insecure. 226 func (mr *MockClientMockRecorder) Insecure() *gomock.Call { 227 mr.mock.ctrl.T.Helper() 228 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insecure", reflect.TypeOf((*MockClient)(nil).Insecure)) 229 } 230 231 // IsCryptoSm2 mocks base method. 232 func (m *MockClient) IsCryptoSm2() bool { 233 m.ctrl.T.Helper() 234 ret := m.ctrl.Call(m, "IsCryptoSm2") 235 ret0, _ := ret[0].(bool) 236 return ret0 237 } 238 239 // IsCryptoSm2 indicates an expected call of IsCryptoSm2. 240 func (mr *MockClientMockRecorder) IsCryptoSm2() *gomock.Call { 241 mr.mock.ctrl.T.Helper() 242 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsCryptoSm2", reflect.TypeOf((*MockClient)(nil).IsCryptoSm2)) 243 } 244 245 // IsHdWalletConfigFileExist mocks base method. 246 func (m *MockClient) IsHdWalletConfigFileExist() bool { 247 m.ctrl.T.Helper() 248 ret := m.ctrl.Call(m, "IsHdWalletConfigFileExist") 249 ret0, _ := ret[0].(bool) 250 return ret0 251 } 252 253 // IsHdWalletConfigFileExist indicates an expected call of IsHdWalletConfigFileExist. 254 func (mr *MockClientMockRecorder) IsHdWalletConfigFileExist() *gomock.Call { 255 mr.mock.ctrl.T.Helper() 256 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsHdWalletConfigFileExist", reflect.TypeOf((*MockClient)(nil).IsHdWalletConfigFileExist)) 257 } 258 259 // NewKeyStore mocks base method. 260 func (m *MockClient) NewKeyStore() *keystore.KeyStore { 261 m.ctrl.T.Helper() 262 ret := m.ctrl.Call(m, "NewKeyStore") 263 ret0, _ := ret[0].(*keystore.KeyStore) 264 return ret0 265 } 266 267 // NewKeyStore indicates an expected call of NewKeyStore. 268 func (mr *MockClientMockRecorder) NewKeyStore() *gomock.Call { 269 mr.mock.ctrl.T.Helper() 270 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewKeyStore", reflect.TypeOf((*MockClient)(nil).NewKeyStore)) 271 } 272 273 // QueryAnalyser mocks base method. 274 func (m *MockClient) QueryAnalyser(arg0 interface{}) (*http.Response, error) { 275 m.ctrl.T.Helper() 276 ret := m.ctrl.Call(m, "QueryAnalyser", arg0) 277 ret0, _ := ret[0].(*http.Response) 278 ret1, _ := ret[1].(error) 279 return ret0, ret1 280 } 281 282 // QueryAnalyser indicates an expected call of QueryAnalyser. 283 func (mr *MockClientMockRecorder) QueryAnalyser(arg0 interface{}) *gomock.Call { 284 mr.mock.ctrl.T.Helper() 285 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryAnalyser", reflect.TypeOf((*MockClient)(nil).QueryAnalyser), arg0) 286 } 287 288 // ReadCustomLink mocks base method. 289 func (m *MockClient) ReadCustomLink() (string, error) { 290 m.ctrl.T.Helper() 291 ret := m.ctrl.Call(m, "ReadCustomLink") 292 ret0, _ := ret[0].(string) 293 ret1, _ := ret[1].(error) 294 return ret0, ret1 295 } 296 297 // ReadCustomLink indicates an expected call of ReadCustomLink. 298 func (mr *MockClientMockRecorder) ReadCustomLink() *gomock.Call { 299 mr.mock.ctrl.T.Helper() 300 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadCustomLink", reflect.TypeOf((*MockClient)(nil).ReadCustomLink)) 301 } 302 303 // ReadInput mocks base method. 304 func (m *MockClient) ReadInput() (string, error) { 305 m.ctrl.T.Helper() 306 ret := m.ctrl.Call(m, "ReadInput") 307 ret0, _ := ret[0].(string) 308 ret1, _ := ret[1].(error) 309 return ret0, ret1 310 } 311 312 // ReadInput indicates an expected call of ReadInput. 313 func (mr *MockClientMockRecorder) ReadInput() *gomock.Call { 314 mr.mock.ctrl.T.Helper() 315 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadInput", reflect.TypeOf((*MockClient)(nil).ReadInput)) 316 } 317 318 // ReadSecret mocks base method. 319 func (m *MockClient) ReadSecret() (string, error) { 320 m.ctrl.T.Helper() 321 ret := m.ctrl.Call(m, "ReadSecret") 322 ret0, _ := ret[0].(string) 323 ret1, _ := ret[1].(error) 324 return ret0, ret1 325 } 326 327 // ReadSecret indicates an expected call of ReadSecret. 328 func (mr *MockClientMockRecorder) ReadSecret() *gomock.Call { 329 mr.mock.ctrl.T.Helper() 330 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadSecret", reflect.TypeOf((*MockClient)(nil).ReadSecret)) 331 } 332 333 // RemoveHdWalletConfigFile mocks base method. 334 func (m *MockClient) RemoveHdWalletConfigFile() error { 335 m.ctrl.T.Helper() 336 ret := m.ctrl.Call(m, "RemoveHdWalletConfigFile") 337 ret0, _ := ret[0].(error) 338 return ret0 339 } 340 341 // RemoveHdWalletConfigFile indicates an expected call of RemoveHdWalletConfigFile. 342 func (mr *MockClientMockRecorder) RemoveHdWalletConfigFile() *gomock.Call { 343 mr.mock.ctrl.T.Helper() 344 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveHdWalletConfigFile", reflect.TypeOf((*MockClient)(nil).RemoveHdWalletConfigFile)) 345 } 346 347 // SelectTranslation mocks base method. 348 func (m *MockClient) SelectTranslation(arg0 map[config.Language]string) (string, config.Language) { 349 m.ctrl.T.Helper() 350 ret := m.ctrl.Call(m, "SelectTranslation", arg0) 351 ret0, _ := ret[0].(string) 352 ret1, _ := ret[1].(config.Language) 353 return ret0, ret1 354 } 355 356 // SelectTranslation indicates an expected call of SelectTranslation. 357 func (mr *MockClientMockRecorder) SelectTranslation(arg0 interface{}) *gomock.Call { 358 mr.mock.ctrl.T.Helper() 359 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelectTranslation", reflect.TypeOf((*MockClient)(nil).SelectTranslation), arg0) 360 } 361 362 // SetAlias mocks base method. 363 func (m *MockClient) SetAlias(arg0, arg1 string) { 364 m.ctrl.T.Helper() 365 m.ctrl.Call(m, "SetAlias", arg0, arg1) 366 } 367 368 // SetAlias indicates an expected call of SetAlias. 369 func (mr *MockClientMockRecorder) SetAlias(arg0, arg1 interface{}) *gomock.Call { 370 mr.mock.ctrl.T.Helper() 371 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetAlias", reflect.TypeOf((*MockClient)(nil).SetAlias), arg0, arg1) 372 } 373 374 // SetAliasAndSave mocks base method. 375 func (m *MockClient) SetAliasAndSave(arg0, arg1 string) error { 376 m.ctrl.T.Helper() 377 ret := m.ctrl.Call(m, "SetAliasAndSave", arg0, arg1) 378 ret0, _ := ret[0].(error) 379 return ret0 380 } 381 382 // SetAliasAndSave indicates an expected call of SetAliasAndSave. 383 func (mr *MockClientMockRecorder) SetAliasAndSave(arg0, arg1 interface{}) *gomock.Call { 384 mr.mock.ctrl.T.Helper() 385 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetAliasAndSave", reflect.TypeOf((*MockClient)(nil).SetAliasAndSave), arg0, arg1) 386 } 387 388 // SetEndpointWithFlag mocks base method. 389 func (m *MockClient) SetEndpointWithFlag(arg0 func(*string, string, string, string)) { 390 m.ctrl.T.Helper() 391 m.ctrl.Call(m, "SetEndpointWithFlag", arg0) 392 } 393 394 // SetEndpointWithFlag indicates an expected call of SetEndpointWithFlag. 395 func (mr *MockClientMockRecorder) SetEndpointWithFlag(arg0 interface{}) *gomock.Call { 396 mr.mock.ctrl.T.Helper() 397 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEndpointWithFlag", reflect.TypeOf((*MockClient)(nil).SetEndpointWithFlag), arg0) 398 } 399 400 // SetInsecureWithFlag mocks base method. 401 func (m *MockClient) SetInsecureWithFlag(arg0 func(*bool, string, bool, string)) { 402 m.ctrl.T.Helper() 403 m.ctrl.Call(m, "SetInsecureWithFlag", arg0) 404 } 405 406 // SetInsecureWithFlag indicates an expected call of SetInsecureWithFlag. 407 func (mr *MockClientMockRecorder) SetInsecureWithFlag(arg0 interface{}) *gomock.Call { 408 mr.mock.ctrl.T.Helper() 409 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInsecureWithFlag", reflect.TypeOf((*MockClient)(nil).SetInsecureWithFlag), arg0) 410 } 411 412 // Start mocks base method. 413 func (m *MockClient) Start(arg0 context.Context) error { 414 m.ctrl.T.Helper() 415 ret := m.ctrl.Call(m, "Start", arg0) 416 ret0, _ := ret[0].(error) 417 return ret0 418 } 419 420 // Start indicates an expected call of Start. 421 func (mr *MockClientMockRecorder) Start(arg0 interface{}) *gomock.Call { 422 mr.mock.ctrl.T.Helper() 423 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockClient)(nil).Start), arg0) 424 } 425 426 // Stop mocks base method. 427 func (m *MockClient) Stop(arg0 context.Context) error { 428 m.ctrl.T.Helper() 429 ret := m.ctrl.Call(m, "Stop", arg0) 430 ret0, _ := ret[0].(error) 431 return ret0 432 } 433 434 // Stop indicates an expected call of Stop. 435 func (mr *MockClientMockRecorder) Stop(arg0 interface{}) *gomock.Call { 436 mr.mock.ctrl.T.Helper() 437 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockClient)(nil).Stop), arg0) 438 } 439 440 // WriteConfig mocks base method. 441 func (m *MockClient) WriteConfig() error { 442 m.ctrl.T.Helper() 443 ret := m.ctrl.Call(m, "WriteConfig") 444 ret0, _ := ret[0].(error) 445 return ret0 446 } 447 448 // WriteConfig indicates an expected call of WriteConfig. 449 func (mr *MockClientMockRecorder) WriteConfig() *gomock.Call { 450 mr.mock.ctrl.T.Helper() 451 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteConfig", reflect.TypeOf((*MockClient)(nil).WriteConfig)) 452 } 453 454 // WriteHdWalletConfigFile mocks base method. 455 func (m *MockClient) WriteHdWalletConfigFile(arg0, arg1 string) error { 456 m.ctrl.T.Helper() 457 ret := m.ctrl.Call(m, "WriteHdWalletConfigFile", arg0, arg1) 458 ret0, _ := ret[0].(error) 459 return ret0 460 } 461 462 // WriteHdWalletConfigFile indicates an expected call of WriteHdWalletConfigFile. 463 func (mr *MockClientMockRecorder) WriteHdWalletConfigFile(arg0, arg1 interface{}) *gomock.Call { 464 mr.mock.ctrl.T.Helper() 465 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteHdWalletConfigFile", reflect.TypeOf((*MockClient)(nil).WriteHdWalletConfigFile), arg0, arg1) 466 }