trpc.group/trpc-go/trpc-go@v1.0.3/config/mockconfig/config_mock.go (about) 1 // 2 // 3 // Tencent is pleased to support the open source community by making tRPC available. 4 // 5 // Copyright (C) 2023 THL A29 Limited, a Tencent company. 6 // All rights reserved. 7 // 8 // If you have downloaded a copy of the tRPC source code from Tencent, 9 // please note that tRPC source code is licensed under the Apache 2.0 License, 10 // A copy of the Apache 2.0 License is included in this file. 11 // 12 // 13 14 // Code generated by MockGen. DO NOT EDIT. 15 // Source: config.go 16 17 // Package mockconfig is a generated GoMock package. 18 package mockconfig 19 20 import ( 21 context "context" 22 reflect "reflect" 23 24 gomock "github.com/golang/mock/gomock" 25 config "trpc.group/trpc-go/trpc-go/config" 26 ) 27 28 // MockUnmarshaler is a mock of Unmarshaler interface 29 type MockUnmarshaler struct { 30 ctrl *gomock.Controller 31 recorder *MockUnmarshalerMockRecorder 32 } 33 34 // MockUnmarshalerMockRecorder is the mock recorder for MockUnmarshaler 35 type MockUnmarshalerMockRecorder struct { 36 mock *MockUnmarshaler 37 } 38 39 // NewMockUnmarshaler creates a new mock instance 40 func NewMockUnmarshaler(ctrl *gomock.Controller) *MockUnmarshaler { 41 mock := &MockUnmarshaler{ctrl: ctrl} 42 mock.recorder = &MockUnmarshalerMockRecorder{mock} 43 return mock 44 } 45 46 // EXPECT returns an object that allows the caller to indicate expected use 47 func (m *MockUnmarshaler) EXPECT() *MockUnmarshalerMockRecorder { 48 return m.recorder 49 } 50 51 // Unmarshal mocks base method 52 func (m *MockUnmarshaler) Unmarshal(data []byte, value interface{}) error { 53 m.ctrl.T.Helper() 54 ret := m.ctrl.Call(m, "Unmarshal", data, value) 55 ret0, _ := ret[0].(error) 56 return ret0 57 } 58 59 // Unmarshal indicates an expected call of Unmarshal 60 func (mr *MockUnmarshalerMockRecorder) Unmarshal(data, value interface{}) *gomock.Call { 61 mr.mock.ctrl.T.Helper() 62 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unmarshal", reflect.TypeOf((*MockUnmarshaler)(nil).Unmarshal), data, value) 63 } 64 65 // MockKVConfig is a mock of KVConfig interface 66 type MockKVConfig struct { 67 ctrl *gomock.Controller 68 recorder *MockKVConfigMockRecorder 69 } 70 71 // MockKVConfigMockRecorder is the mock recorder for MockKVConfig 72 type MockKVConfigMockRecorder struct { 73 mock *MockKVConfig 74 } 75 76 // NewMockKVConfig creates a new mock instance 77 func NewMockKVConfig(ctrl *gomock.Controller) *MockKVConfig { 78 mock := &MockKVConfig{ctrl: ctrl} 79 mock.recorder = &MockKVConfigMockRecorder{mock} 80 return mock 81 } 82 83 // EXPECT returns an object that allows the caller to indicate expected use 84 func (m *MockKVConfig) EXPECT() *MockKVConfigMockRecorder { 85 return m.recorder 86 } 87 88 // Put mocks base method 89 func (m *MockKVConfig) Put(ctx context.Context, key, val string, opts ...config.Option) error { 90 m.ctrl.T.Helper() 91 varargs := []interface{}{ctx, key, val} 92 for _, a := range opts { 93 varargs = append(varargs, a) 94 } 95 ret := m.ctrl.Call(m, "Put", varargs...) 96 ret0, _ := ret[0].(error) 97 return ret0 98 } 99 100 // Put indicates an expected call of Put 101 func (mr *MockKVConfigMockRecorder) Put(ctx, key, val interface{}, opts ...interface{}) *gomock.Call { 102 mr.mock.ctrl.T.Helper() 103 varargs := append([]interface{}{ctx, key, val}, opts...) 104 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockKVConfig)(nil).Put), varargs...) 105 } 106 107 // Get mocks base method 108 func (m *MockKVConfig) Get(ctx context.Context, key string, opts ...config.Option) (config.Response, error) { 109 m.ctrl.T.Helper() 110 varargs := []interface{}{ctx, key} 111 for _, a := range opts { 112 varargs = append(varargs, a) 113 } 114 ret := m.ctrl.Call(m, "Get", varargs...) 115 ret0, _ := ret[0].(config.Response) 116 ret1, _ := ret[1].(error) 117 return ret0, ret1 118 } 119 120 // Get indicates an expected call of Get 121 func (mr *MockKVConfigMockRecorder) Get(ctx, key interface{}, opts ...interface{}) *gomock.Call { 122 mr.mock.ctrl.T.Helper() 123 varargs := append([]interface{}{ctx, key}, opts...) 124 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockKVConfig)(nil).Get), varargs...) 125 } 126 127 // Del mocks base method 128 func (m *MockKVConfig) Del(ctx context.Context, key string, opts ...config.Option) error { 129 m.ctrl.T.Helper() 130 varargs := []interface{}{ctx, key} 131 for _, a := range opts { 132 varargs = append(varargs, a) 133 } 134 ret := m.ctrl.Call(m, "Del", varargs...) 135 ret0, _ := ret[0].(error) 136 return ret0 137 } 138 139 // Del indicates an expected call of Del 140 func (mr *MockKVConfigMockRecorder) Del(ctx, key interface{}, opts ...interface{}) *gomock.Call { 141 mr.mock.ctrl.T.Helper() 142 varargs := append([]interface{}{ctx, key}, opts...) 143 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Del", reflect.TypeOf((*MockKVConfig)(nil).Del), varargs...) 144 } 145 146 // Watch mocks base method 147 func (m *MockKVConfig) Watch(ctx context.Context, key string, opts ...config.Option) (<-chan config.Response, error) { 148 m.ctrl.T.Helper() 149 varargs := []interface{}{ctx, key} 150 for _, a := range opts { 151 varargs = append(varargs, a) 152 } 153 ret := m.ctrl.Call(m, "Watch", varargs...) 154 ret0, _ := ret[0].(<-chan config.Response) 155 ret1, _ := ret[1].(error) 156 return ret0, ret1 157 } 158 159 // Watch indicates an expected call of Watch 160 func (mr *MockKVConfigMockRecorder) Watch(ctx, key interface{}, opts ...interface{}) *gomock.Call { 161 mr.mock.ctrl.T.Helper() 162 varargs := append([]interface{}{ctx, key}, opts...) 163 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockKVConfig)(nil).Watch), varargs...) 164 } 165 166 // Name mocks base method 167 func (m *MockKVConfig) Name() string { 168 m.ctrl.T.Helper() 169 ret := m.ctrl.Call(m, "Name") 170 ret0, _ := ret[0].(string) 171 return ret0 172 } 173 174 // Name indicates an expected call of Name 175 func (mr *MockKVConfigMockRecorder) Name() *gomock.Call { 176 mr.mock.ctrl.T.Helper() 177 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockKVConfig)(nil).Name)) 178 } 179 180 // MockResponse is a mock of Response interface 181 type MockResponse struct { 182 ctrl *gomock.Controller 183 recorder *MockResponseMockRecorder 184 } 185 186 // MockResponseMockRecorder is the mock recorder for MockResponse 187 type MockResponseMockRecorder struct { 188 mock *MockResponse 189 } 190 191 // NewMockResponse creates a new mock instance 192 func NewMockResponse(ctrl *gomock.Controller) *MockResponse { 193 mock := &MockResponse{ctrl: ctrl} 194 mock.recorder = &MockResponseMockRecorder{mock} 195 return mock 196 } 197 198 // EXPECT returns an object that allows the caller to indicate expected use 199 func (m *MockResponse) EXPECT() *MockResponseMockRecorder { 200 return m.recorder 201 } 202 203 // Value mocks base method 204 func (m *MockResponse) Value() string { 205 m.ctrl.T.Helper() 206 ret := m.ctrl.Call(m, "Value") 207 ret0, _ := ret[0].(string) 208 return ret0 209 } 210 211 // Value indicates an expected call of Value 212 func (mr *MockResponseMockRecorder) Value() *gomock.Call { 213 mr.mock.ctrl.T.Helper() 214 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Value", reflect.TypeOf((*MockResponse)(nil).Value)) 215 } 216 217 // MetaData mocks base method 218 func (m *MockResponse) MetaData() map[string]string { 219 m.ctrl.T.Helper() 220 ret := m.ctrl.Call(m, "MetaData") 221 ret0, _ := ret[0].(map[string]string) 222 return ret0 223 } 224 225 // MetaData indicates an expected call of MetaData 226 func (mr *MockResponseMockRecorder) MetaData() *gomock.Call { 227 mr.mock.ctrl.T.Helper() 228 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MetaData", reflect.TypeOf((*MockResponse)(nil).MetaData)) 229 } 230 231 // Event mocks base method 232 func (m *MockResponse) Event() config.EventType { 233 m.ctrl.T.Helper() 234 ret := m.ctrl.Call(m, "Event") 235 ret0, _ := ret[0].(config.EventType) 236 return ret0 237 } 238 239 // Event indicates an expected call of Event 240 func (mr *MockResponseMockRecorder) Event() *gomock.Call { 241 mr.mock.ctrl.T.Helper() 242 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Event", reflect.TypeOf((*MockResponse)(nil).Event)) 243 } 244 245 // MockKV is a mock of KV interface 246 type MockKV struct { 247 ctrl *gomock.Controller 248 recorder *MockKVMockRecorder 249 } 250 251 // MockKVMockRecorder is the mock recorder for MockKV 252 type MockKVMockRecorder struct { 253 mock *MockKV 254 } 255 256 // NewMockKV creates a new mock instance 257 func NewMockKV(ctrl *gomock.Controller) *MockKV { 258 mock := &MockKV{ctrl: ctrl} 259 mock.recorder = &MockKVMockRecorder{mock} 260 return mock 261 } 262 263 // EXPECT returns an object that allows the caller to indicate expected use 264 func (m *MockKV) EXPECT() *MockKVMockRecorder { 265 return m.recorder 266 } 267 268 // Put mocks base method 269 func (m *MockKV) Put(ctx context.Context, key, val string, opts ...config.Option) error { 270 m.ctrl.T.Helper() 271 varargs := []interface{}{ctx, key, val} 272 for _, a := range opts { 273 varargs = append(varargs, a) 274 } 275 ret := m.ctrl.Call(m, "Put", varargs...) 276 ret0, _ := ret[0].(error) 277 return ret0 278 } 279 280 // Put indicates an expected call of Put 281 func (mr *MockKVMockRecorder) Put(ctx, key, val interface{}, opts ...interface{}) *gomock.Call { 282 mr.mock.ctrl.T.Helper() 283 varargs := append([]interface{}{ctx, key, val}, opts...) 284 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockKV)(nil).Put), varargs...) 285 } 286 287 // Get mocks base method 288 func (m *MockKV) Get(ctx context.Context, key string, opts ...config.Option) (config.Response, error) { 289 m.ctrl.T.Helper() 290 varargs := []interface{}{ctx, key} 291 for _, a := range opts { 292 varargs = append(varargs, a) 293 } 294 ret := m.ctrl.Call(m, "Get", varargs...) 295 ret0, _ := ret[0].(config.Response) 296 ret1, _ := ret[1].(error) 297 return ret0, ret1 298 } 299 300 // Get indicates an expected call of Get 301 func (mr *MockKVMockRecorder) Get(ctx, key interface{}, opts ...interface{}) *gomock.Call { 302 mr.mock.ctrl.T.Helper() 303 varargs := append([]interface{}{ctx, key}, opts...) 304 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockKV)(nil).Get), varargs...) 305 } 306 307 // Del mocks base method 308 func (m *MockKV) Del(ctx context.Context, key string, opts ...config.Option) error { 309 m.ctrl.T.Helper() 310 varargs := []interface{}{ctx, key} 311 for _, a := range opts { 312 varargs = append(varargs, a) 313 } 314 ret := m.ctrl.Call(m, "Del", varargs...) 315 ret0, _ := ret[0].(error) 316 return ret0 317 } 318 319 // Del indicates an expected call of Del 320 func (mr *MockKVMockRecorder) Del(ctx, key interface{}, opts ...interface{}) *gomock.Call { 321 mr.mock.ctrl.T.Helper() 322 varargs := append([]interface{}{ctx, key}, opts...) 323 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Del", reflect.TypeOf((*MockKV)(nil).Del), varargs...) 324 } 325 326 // MockWatcher is a mock of Watcher interface 327 type MockWatcher struct { 328 ctrl *gomock.Controller 329 recorder *MockWatcherMockRecorder 330 } 331 332 // MockWatcherMockRecorder is the mock recorder for MockWatcher 333 type MockWatcherMockRecorder struct { 334 mock *MockWatcher 335 } 336 337 // NewMockWatcher creates a new mock instance 338 func NewMockWatcher(ctrl *gomock.Controller) *MockWatcher { 339 mock := &MockWatcher{ctrl: ctrl} 340 mock.recorder = &MockWatcherMockRecorder{mock} 341 return mock 342 } 343 344 // EXPECT returns an object that allows the caller to indicate expected use 345 func (m *MockWatcher) EXPECT() *MockWatcherMockRecorder { 346 return m.recorder 347 } 348 349 // Watch mocks base method 350 func (m *MockWatcher) Watch(ctx context.Context, key string, opts ...config.Option) (<-chan config.Response, error) { 351 m.ctrl.T.Helper() 352 varargs := []interface{}{ctx, key} 353 for _, a := range opts { 354 varargs = append(varargs, a) 355 } 356 ret := m.ctrl.Call(m, "Watch", varargs...) 357 ret0, _ := ret[0].(<-chan config.Response) 358 ret1, _ := ret[1].(error) 359 return ret0, ret1 360 } 361 362 // Watch indicates an expected call of Watch 363 func (mr *MockWatcherMockRecorder) Watch(ctx, key interface{}, opts ...interface{}) *gomock.Call { 364 mr.mock.ctrl.T.Helper() 365 varargs := append([]interface{}{ctx, key}, opts...) 366 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockWatcher)(nil).Watch), varargs...) 367 } 368 369 // MockLoader is a mock of Loader interface 370 type MockLoader struct { 371 ctrl *gomock.Controller 372 recorder *MockLoaderMockRecorder 373 } 374 375 // MockLoaderMockRecorder is the mock recorder for MockLoader 376 type MockLoaderMockRecorder struct { 377 mock *MockLoader 378 } 379 380 // NewMockLoader creates a new mock instance 381 func NewMockLoader(ctrl *gomock.Controller) *MockLoader { 382 mock := &MockLoader{ctrl: ctrl} 383 mock.recorder = &MockLoaderMockRecorder{mock} 384 return mock 385 } 386 387 // EXPECT returns an object that allows the caller to indicate expected use 388 func (m *MockLoader) EXPECT() *MockLoaderMockRecorder { 389 return m.recorder 390 } 391 392 // Load mocks base method 393 func (m *MockLoader) Load(arg0 string) (config.Config, error) { 394 m.ctrl.T.Helper() 395 ret := m.ctrl.Call(m, "Load", arg0) 396 ret0, _ := ret[0].(config.Config) 397 ret1, _ := ret[1].(error) 398 return ret0, ret1 399 } 400 401 // Load indicates an expected call of Load 402 func (mr *MockLoaderMockRecorder) Load(arg0 interface{}) *gomock.Call { 403 mr.mock.ctrl.T.Helper() 404 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Load", reflect.TypeOf((*MockLoader)(nil).Load), arg0) 405 } 406 407 // Reload mocks base method 408 func (m *MockLoader) Reload(arg0 string) error { 409 m.ctrl.T.Helper() 410 ret := m.ctrl.Call(m, "Reload", arg0) 411 ret0, _ := ret[0].(error) 412 return ret0 413 } 414 415 // Reload indicates an expected call of Reload 416 func (mr *MockLoaderMockRecorder) Reload(arg0 interface{}) *gomock.Call { 417 mr.mock.ctrl.T.Helper() 418 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reload", reflect.TypeOf((*MockLoader)(nil).Reload), arg0) 419 } 420 421 // MockConfig is a mock of Config interface 422 type MockConfig struct { 423 ctrl *gomock.Controller 424 recorder *MockConfigMockRecorder 425 } 426 427 // MockConfigMockRecorder is the mock recorder for MockConfig 428 type MockConfigMockRecorder struct { 429 mock *MockConfig 430 } 431 432 // NewMockConfig creates a new mock instance 433 func NewMockConfig(ctrl *gomock.Controller) *MockConfig { 434 mock := &MockConfig{ctrl: ctrl} 435 mock.recorder = &MockConfigMockRecorder{mock} 436 return mock 437 } 438 439 // EXPECT returns an object that allows the caller to indicate expected use 440 func (m *MockConfig) EXPECT() *MockConfigMockRecorder { 441 return m.recorder 442 } 443 444 // Load mocks base method 445 func (m *MockConfig) Load() error { 446 m.ctrl.T.Helper() 447 ret := m.ctrl.Call(m, "Load") 448 ret0, _ := ret[0].(error) 449 return ret0 450 } 451 452 // Load indicates an expected call of Load 453 func (mr *MockConfigMockRecorder) Load() *gomock.Call { 454 mr.mock.ctrl.T.Helper() 455 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Load", reflect.TypeOf((*MockConfig)(nil).Load)) 456 } 457 458 // Reload mocks base method 459 func (m *MockConfig) Reload() { 460 m.ctrl.T.Helper() 461 m.ctrl.Call(m, "Reload") 462 } 463 464 // Reload indicates an expected call of Reload 465 func (mr *MockConfigMockRecorder) Reload() *gomock.Call { 466 mr.mock.ctrl.T.Helper() 467 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reload", reflect.TypeOf((*MockConfig)(nil).Reload)) 468 } 469 470 // Get mocks base method 471 func (m *MockConfig) Get(arg0 string, arg1 interface{}) interface{} { 472 m.ctrl.T.Helper() 473 ret := m.ctrl.Call(m, "Get", arg0, arg1) 474 ret0, _ := ret[0].(interface{}) 475 return ret0 476 } 477 478 // Get indicates an expected call of Get 479 func (mr *MockConfigMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call { 480 mr.mock.ctrl.T.Helper() 481 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockConfig)(nil).Get), arg0, arg1) 482 } 483 484 // Unmarshal mocks base method 485 func (m *MockConfig) Unmarshal(arg0 interface{}) error { 486 m.ctrl.T.Helper() 487 ret := m.ctrl.Call(m, "Unmarshal", arg0) 488 ret0, _ := ret[0].(error) 489 return ret0 490 } 491 492 // Unmarshal indicates an expected call of Unmarshal 493 func (mr *MockConfigMockRecorder) Unmarshal(arg0 interface{}) *gomock.Call { 494 mr.mock.ctrl.T.Helper() 495 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unmarshal", reflect.TypeOf((*MockConfig)(nil).Unmarshal), arg0) 496 } 497 498 // IsSet mocks base method 499 func (m *MockConfig) IsSet(arg0 string) bool { 500 m.ctrl.T.Helper() 501 ret := m.ctrl.Call(m, "IsSet", arg0) 502 ret0, _ := ret[0].(bool) 503 return ret0 504 } 505 506 // IsSet indicates an expected call of IsSet 507 func (mr *MockConfigMockRecorder) IsSet(arg0 interface{}) *gomock.Call { 508 mr.mock.ctrl.T.Helper() 509 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsSet", reflect.TypeOf((*MockConfig)(nil).IsSet), arg0) 510 } 511 512 // GetInt mocks base method 513 func (m *MockConfig) GetInt(arg0 string, arg1 int) int { 514 m.ctrl.T.Helper() 515 ret := m.ctrl.Call(m, "GetInt", arg0, arg1) 516 ret0, _ := ret[0].(int) 517 return ret0 518 } 519 520 // GetInt indicates an expected call of GetInt 521 func (mr *MockConfigMockRecorder) GetInt(arg0, arg1 interface{}) *gomock.Call { 522 mr.mock.ctrl.T.Helper() 523 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInt", reflect.TypeOf((*MockConfig)(nil).GetInt), arg0, arg1) 524 } 525 526 // GetInt32 mocks base method 527 func (m *MockConfig) GetInt32(arg0 string, arg1 int32) int32 { 528 m.ctrl.T.Helper() 529 ret := m.ctrl.Call(m, "GetInt32", arg0, arg1) 530 ret0, _ := ret[0].(int32) 531 return ret0 532 } 533 534 // GetInt32 indicates an expected call of GetInt32 535 func (mr *MockConfigMockRecorder) GetInt32(arg0, arg1 interface{}) *gomock.Call { 536 mr.mock.ctrl.T.Helper() 537 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInt32", reflect.TypeOf((*MockConfig)(nil).GetInt32), arg0, arg1) 538 } 539 540 // GetInt64 mocks base method 541 func (m *MockConfig) GetInt64(arg0 string, arg1 int64) int64 { 542 m.ctrl.T.Helper() 543 ret := m.ctrl.Call(m, "GetInt64", arg0, arg1) 544 ret0, _ := ret[0].(int64) 545 return ret0 546 } 547 548 // GetInt64 indicates an expected call of GetInt64 549 func (mr *MockConfigMockRecorder) GetInt64(arg0, arg1 interface{}) *gomock.Call { 550 mr.mock.ctrl.T.Helper() 551 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInt64", reflect.TypeOf((*MockConfig)(nil).GetInt64), arg0, arg1) 552 } 553 554 // GetUint mocks base method 555 func (m *MockConfig) GetUint(arg0 string, arg1 uint) uint { 556 m.ctrl.T.Helper() 557 ret := m.ctrl.Call(m, "GetUint", arg0, arg1) 558 ret0, _ := ret[0].(uint) 559 return ret0 560 } 561 562 // GetUint indicates an expected call of GetUint 563 func (mr *MockConfigMockRecorder) GetUint(arg0, arg1 interface{}) *gomock.Call { 564 mr.mock.ctrl.T.Helper() 565 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUint", reflect.TypeOf((*MockConfig)(nil).GetUint), arg0, arg1) 566 } 567 568 // GetUint32 mocks base method 569 func (m *MockConfig) GetUint32(arg0 string, arg1 uint32) uint32 { 570 m.ctrl.T.Helper() 571 ret := m.ctrl.Call(m, "GetUint32", arg0, arg1) 572 ret0, _ := ret[0].(uint32) 573 return ret0 574 } 575 576 // GetUint32 indicates an expected call of GetUint32 577 func (mr *MockConfigMockRecorder) GetUint32(arg0, arg1 interface{}) *gomock.Call { 578 mr.mock.ctrl.T.Helper() 579 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUint32", reflect.TypeOf((*MockConfig)(nil).GetUint32), arg0, arg1) 580 } 581 582 // GetUint64 mocks base method 583 func (m *MockConfig) GetUint64(arg0 string, arg1 uint64) uint64 { 584 m.ctrl.T.Helper() 585 ret := m.ctrl.Call(m, "GetUint64", arg0, arg1) 586 ret0, _ := ret[0].(uint64) 587 return ret0 588 } 589 590 // GetUint64 indicates an expected call of GetUint64 591 func (mr *MockConfigMockRecorder) GetUint64(arg0, arg1 interface{}) *gomock.Call { 592 mr.mock.ctrl.T.Helper() 593 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUint64", reflect.TypeOf((*MockConfig)(nil).GetUint64), arg0, arg1) 594 } 595 596 // GetFloat32 mocks base method 597 func (m *MockConfig) GetFloat32(arg0 string, arg1 float32) float32 { 598 m.ctrl.T.Helper() 599 ret := m.ctrl.Call(m, "GetFloat32", arg0, arg1) 600 ret0, _ := ret[0].(float32) 601 return ret0 602 } 603 604 // GetFloat32 indicates an expected call of GetFloat32 605 func (mr *MockConfigMockRecorder) GetFloat32(arg0, arg1 interface{}) *gomock.Call { 606 mr.mock.ctrl.T.Helper() 607 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFloat32", reflect.TypeOf((*MockConfig)(nil).GetFloat32), arg0, arg1) 608 } 609 610 // GetFloat64 mocks base method 611 func (m *MockConfig) GetFloat64(arg0 string, arg1 float64) float64 { 612 m.ctrl.T.Helper() 613 ret := m.ctrl.Call(m, "GetFloat64", arg0, arg1) 614 ret0, _ := ret[0].(float64) 615 return ret0 616 } 617 618 // GetFloat64 indicates an expected call of GetFloat64 619 func (mr *MockConfigMockRecorder) GetFloat64(arg0, arg1 interface{}) *gomock.Call { 620 mr.mock.ctrl.T.Helper() 621 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFloat64", reflect.TypeOf((*MockConfig)(nil).GetFloat64), arg0, arg1) 622 } 623 624 // GetString mocks base method 625 func (m *MockConfig) GetString(arg0, arg1 string) string { 626 m.ctrl.T.Helper() 627 ret := m.ctrl.Call(m, "GetString", arg0, arg1) 628 ret0, _ := ret[0].(string) 629 return ret0 630 } 631 632 // GetString indicates an expected call of GetString 633 func (mr *MockConfigMockRecorder) GetString(arg0, arg1 interface{}) *gomock.Call { 634 mr.mock.ctrl.T.Helper() 635 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetString", reflect.TypeOf((*MockConfig)(nil).GetString), arg0, arg1) 636 } 637 638 // GetBool mocks base method 639 func (m *MockConfig) GetBool(arg0 string, arg1 bool) bool { 640 m.ctrl.T.Helper() 641 ret := m.ctrl.Call(m, "GetBool", arg0, arg1) 642 ret0, _ := ret[0].(bool) 643 return ret0 644 } 645 646 // GetBool indicates an expected call of GetBool 647 func (mr *MockConfigMockRecorder) GetBool(arg0, arg1 interface{}) *gomock.Call { 648 mr.mock.ctrl.T.Helper() 649 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBool", reflect.TypeOf((*MockConfig)(nil).GetBool), arg0, arg1) 650 } 651 652 // Bytes mocks base method 653 func (m *MockConfig) Bytes() []byte { 654 m.ctrl.T.Helper() 655 ret := m.ctrl.Call(m, "Bytes") 656 ret0, _ := ret[0].([]byte) 657 return ret0 658 } 659 660 // Bytes indicates an expected call of Bytes 661 func (mr *MockConfigMockRecorder) Bytes() *gomock.Call { 662 mr.mock.ctrl.T.Helper() 663 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bytes", reflect.TypeOf((*MockConfig)(nil).Bytes)) 664 } 665 666 // MockDataProvider is a mock of DataProvider interface 667 type MockDataProvider struct { 668 ctrl *gomock.Controller 669 recorder *MockDataProviderMockRecorder 670 } 671 672 // MockDataProviderMockRecorder is the mock recorder for MockDataProvider 673 type MockDataProviderMockRecorder struct { 674 mock *MockDataProvider 675 } 676 677 // NewMockDataProvider creates a new mock instance 678 func NewMockDataProvider(ctrl *gomock.Controller) *MockDataProvider { 679 mock := &MockDataProvider{ctrl: ctrl} 680 mock.recorder = &MockDataProviderMockRecorder{mock} 681 return mock 682 } 683 684 // EXPECT returns an object that allows the caller to indicate expected use 685 func (m *MockDataProvider) EXPECT() *MockDataProviderMockRecorder { 686 return m.recorder 687 } 688 689 // Name mocks base method 690 func (m *MockDataProvider) Name() string { 691 m.ctrl.T.Helper() 692 ret := m.ctrl.Call(m, "Name") 693 ret0, _ := ret[0].(string) 694 return ret0 695 } 696 697 // Name indicates an expected call of Name 698 func (mr *MockDataProviderMockRecorder) Name() *gomock.Call { 699 mr.mock.ctrl.T.Helper() 700 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockDataProvider)(nil).Name)) 701 } 702 703 // Read mocks base method 704 func (m *MockDataProvider) Read(arg0 string) ([]byte, error) { 705 m.ctrl.T.Helper() 706 ret := m.ctrl.Call(m, "Read", arg0) 707 ret0, _ := ret[0].([]byte) 708 ret1, _ := ret[1].(error) 709 return ret0, ret1 710 } 711 712 // Read indicates an expected call of Read 713 func (mr *MockDataProviderMockRecorder) Read(arg0 interface{}) *gomock.Call { 714 mr.mock.ctrl.T.Helper() 715 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockDataProvider)(nil).Read), arg0) 716 } 717 718 // Watch mocks base method 719 func (m *MockDataProvider) Watch(arg0 config.ProviderCallback) { 720 m.ctrl.T.Helper() 721 m.ctrl.Call(m, "Watch", arg0) 722 } 723 724 // Watch indicates an expected call of Watch 725 func (mr *MockDataProviderMockRecorder) Watch(arg0 interface{}) *gomock.Call { 726 mr.mock.ctrl.T.Helper() 727 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockDataProvider)(nil).Watch), arg0) 728 } 729 730 // MockCodec is a mock of Codec interface 731 type MockCodec struct { 732 ctrl *gomock.Controller 733 recorder *MockCodecMockRecorder 734 } 735 736 // MockCodecMockRecorder is the mock recorder for MockCodec 737 type MockCodecMockRecorder struct { 738 mock *MockCodec 739 } 740 741 // NewMockCodec creates a new mock instance 742 func NewMockCodec(ctrl *gomock.Controller) *MockCodec { 743 mock := &MockCodec{ctrl: ctrl} 744 mock.recorder = &MockCodecMockRecorder{mock} 745 return mock 746 } 747 748 // EXPECT returns an object that allows the caller to indicate expected use 749 func (m *MockCodec) EXPECT() *MockCodecMockRecorder { 750 return m.recorder 751 } 752 753 // Name mocks base method 754 func (m *MockCodec) Name() string { 755 m.ctrl.T.Helper() 756 ret := m.ctrl.Call(m, "Name") 757 ret0, _ := ret[0].(string) 758 return ret0 759 } 760 761 // Name indicates an expected call of Name 762 func (mr *MockCodecMockRecorder) Name() *gomock.Call { 763 mr.mock.ctrl.T.Helper() 764 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockCodec)(nil).Name)) 765 } 766 767 // Unmarshal mocks base method 768 func (m *MockCodec) Unmarshal(arg0 []byte, arg1 interface{}) error { 769 m.ctrl.T.Helper() 770 ret := m.ctrl.Call(m, "Unmarshal", arg0, arg1) 771 ret0, _ := ret[0].(error) 772 return ret0 773 } 774 775 // Unmarshal indicates an expected call of Unmarshal 776 func (mr *MockCodecMockRecorder) Unmarshal(arg0, arg1 interface{}) *gomock.Call { 777 mr.mock.ctrl.T.Helper() 778 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unmarshal", reflect.TypeOf((*MockCodec)(nil).Unmarshal), arg0, arg1) 779 }