github.com/m3db/m3@v1.5.0/src/dbnode/storage/block/block_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/m3db/m3/src/dbnode/storage/block/types.go 3 4 // Copyright (c) 2022 Uber Technologies, Inc. 5 // 6 // Permission is hereby granted, free of charge, to any person obtaining a copy 7 // of this software and associated documentation files (the "Software"), to deal 8 // in the Software without restriction, including without limitation the rights 9 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 // copies of the Software, and to permit persons to whom the Software is 11 // furnished to do so, subject to the following conditions: 12 // 13 // The above copyright notice and this permission notice shall be included in 14 // all copies or substantial portions of the Software. 15 // 16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 // THE SOFTWARE. 23 24 // Package block is a generated GoMock package. 25 package block 26 27 import ( 28 "reflect" 29 "time" 30 31 "github.com/m3db/m3/src/dbnode/encoding" 32 "github.com/m3db/m3/src/dbnode/namespace" 33 "github.com/m3db/m3/src/dbnode/sharding" 34 "github.com/m3db/m3/src/dbnode/ts" 35 "github.com/m3db/m3/src/dbnode/x/xio" 36 "github.com/m3db/m3/src/x/clock" 37 "github.com/m3db/m3/src/x/context" 38 "github.com/m3db/m3/src/x/ident" 39 "github.com/m3db/m3/src/x/pool" 40 "github.com/m3db/m3/src/x/sync" 41 time0 "github.com/m3db/m3/src/x/time" 42 43 "github.com/golang/mock/gomock" 44 ) 45 46 // MockFilteredBlocksMetadataIter is a mock of FilteredBlocksMetadataIter interface. 47 type MockFilteredBlocksMetadataIter struct { 48 ctrl *gomock.Controller 49 recorder *MockFilteredBlocksMetadataIterMockRecorder 50 } 51 52 // MockFilteredBlocksMetadataIterMockRecorder is the mock recorder for MockFilteredBlocksMetadataIter. 53 type MockFilteredBlocksMetadataIterMockRecorder struct { 54 mock *MockFilteredBlocksMetadataIter 55 } 56 57 // NewMockFilteredBlocksMetadataIter creates a new mock instance. 58 func NewMockFilteredBlocksMetadataIter(ctrl *gomock.Controller) *MockFilteredBlocksMetadataIter { 59 mock := &MockFilteredBlocksMetadataIter{ctrl: ctrl} 60 mock.recorder = &MockFilteredBlocksMetadataIterMockRecorder{mock} 61 return mock 62 } 63 64 // EXPECT returns an object that allows the caller to indicate expected use. 65 func (m *MockFilteredBlocksMetadataIter) EXPECT() *MockFilteredBlocksMetadataIterMockRecorder { 66 return m.recorder 67 } 68 69 // Current mocks base method. 70 func (m *MockFilteredBlocksMetadataIter) Current() (ident.ID, Metadata) { 71 m.ctrl.T.Helper() 72 ret := m.ctrl.Call(m, "Current") 73 ret0, _ := ret[0].(ident.ID) 74 ret1, _ := ret[1].(Metadata) 75 return ret0, ret1 76 } 77 78 // Current indicates an expected call of Current. 79 func (mr *MockFilteredBlocksMetadataIterMockRecorder) Current() *gomock.Call { 80 mr.mock.ctrl.T.Helper() 81 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Current", reflect.TypeOf((*MockFilteredBlocksMetadataIter)(nil).Current)) 82 } 83 84 // Err mocks base method. 85 func (m *MockFilteredBlocksMetadataIter) Err() error { 86 m.ctrl.T.Helper() 87 ret := m.ctrl.Call(m, "Err") 88 ret0, _ := ret[0].(error) 89 return ret0 90 } 91 92 // Err indicates an expected call of Err. 93 func (mr *MockFilteredBlocksMetadataIterMockRecorder) Err() *gomock.Call { 94 mr.mock.ctrl.T.Helper() 95 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockFilteredBlocksMetadataIter)(nil).Err)) 96 } 97 98 // Next mocks base method. 99 func (m *MockFilteredBlocksMetadataIter) Next() bool { 100 m.ctrl.T.Helper() 101 ret := m.ctrl.Call(m, "Next") 102 ret0, _ := ret[0].(bool) 103 return ret0 104 } 105 106 // Next indicates an expected call of Next. 107 func (mr *MockFilteredBlocksMetadataIterMockRecorder) Next() *gomock.Call { 108 mr.mock.ctrl.T.Helper() 109 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockFilteredBlocksMetadataIter)(nil).Next)) 110 } 111 112 // MockFetchBlockMetadataResults is a mock of FetchBlockMetadataResults interface. 113 type MockFetchBlockMetadataResults struct { 114 ctrl *gomock.Controller 115 recorder *MockFetchBlockMetadataResultsMockRecorder 116 } 117 118 // MockFetchBlockMetadataResultsMockRecorder is the mock recorder for MockFetchBlockMetadataResults. 119 type MockFetchBlockMetadataResultsMockRecorder struct { 120 mock *MockFetchBlockMetadataResults 121 } 122 123 // NewMockFetchBlockMetadataResults creates a new mock instance. 124 func NewMockFetchBlockMetadataResults(ctrl *gomock.Controller) *MockFetchBlockMetadataResults { 125 mock := &MockFetchBlockMetadataResults{ctrl: ctrl} 126 mock.recorder = &MockFetchBlockMetadataResultsMockRecorder{mock} 127 return mock 128 } 129 130 // EXPECT returns an object that allows the caller to indicate expected use. 131 func (m *MockFetchBlockMetadataResults) EXPECT() *MockFetchBlockMetadataResultsMockRecorder { 132 return m.recorder 133 } 134 135 // Add mocks base method. 136 func (m *MockFetchBlockMetadataResults) Add(res FetchBlockMetadataResult) { 137 m.ctrl.T.Helper() 138 m.ctrl.Call(m, "Add", res) 139 } 140 141 // Add indicates an expected call of Add. 142 func (mr *MockFetchBlockMetadataResultsMockRecorder) Add(res interface{}) *gomock.Call { 143 mr.mock.ctrl.T.Helper() 144 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockFetchBlockMetadataResults)(nil).Add), res) 145 } 146 147 // Close mocks base method. 148 func (m *MockFetchBlockMetadataResults) Close() { 149 m.ctrl.T.Helper() 150 m.ctrl.Call(m, "Close") 151 } 152 153 // Close indicates an expected call of Close. 154 func (mr *MockFetchBlockMetadataResultsMockRecorder) Close() *gomock.Call { 155 mr.mock.ctrl.T.Helper() 156 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockFetchBlockMetadataResults)(nil).Close)) 157 } 158 159 // Reset mocks base method. 160 func (m *MockFetchBlockMetadataResults) Reset() { 161 m.ctrl.T.Helper() 162 m.ctrl.Call(m, "Reset") 163 } 164 165 // Reset indicates an expected call of Reset. 166 func (mr *MockFetchBlockMetadataResultsMockRecorder) Reset() *gomock.Call { 167 mr.mock.ctrl.T.Helper() 168 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockFetchBlockMetadataResults)(nil).Reset)) 169 } 170 171 // Results mocks base method. 172 func (m *MockFetchBlockMetadataResults) Results() []FetchBlockMetadataResult { 173 m.ctrl.T.Helper() 174 ret := m.ctrl.Call(m, "Results") 175 ret0, _ := ret[0].([]FetchBlockMetadataResult) 176 return ret0 177 } 178 179 // Results indicates an expected call of Results. 180 func (mr *MockFetchBlockMetadataResultsMockRecorder) Results() *gomock.Call { 181 mr.mock.ctrl.T.Helper() 182 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Results", reflect.TypeOf((*MockFetchBlockMetadataResults)(nil).Results)) 183 } 184 185 // Sort mocks base method. 186 func (m *MockFetchBlockMetadataResults) Sort() { 187 m.ctrl.T.Helper() 188 m.ctrl.Call(m, "Sort") 189 } 190 191 // Sort indicates an expected call of Sort. 192 func (mr *MockFetchBlockMetadataResultsMockRecorder) Sort() *gomock.Call { 193 mr.mock.ctrl.T.Helper() 194 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sort", reflect.TypeOf((*MockFetchBlockMetadataResults)(nil).Sort)) 195 } 196 197 // MockFetchBlocksMetadataResults is a mock of FetchBlocksMetadataResults interface. 198 type MockFetchBlocksMetadataResults struct { 199 ctrl *gomock.Controller 200 recorder *MockFetchBlocksMetadataResultsMockRecorder 201 } 202 203 // MockFetchBlocksMetadataResultsMockRecorder is the mock recorder for MockFetchBlocksMetadataResults. 204 type MockFetchBlocksMetadataResultsMockRecorder struct { 205 mock *MockFetchBlocksMetadataResults 206 } 207 208 // NewMockFetchBlocksMetadataResults creates a new mock instance. 209 func NewMockFetchBlocksMetadataResults(ctrl *gomock.Controller) *MockFetchBlocksMetadataResults { 210 mock := &MockFetchBlocksMetadataResults{ctrl: ctrl} 211 mock.recorder = &MockFetchBlocksMetadataResultsMockRecorder{mock} 212 return mock 213 } 214 215 // EXPECT returns an object that allows the caller to indicate expected use. 216 func (m *MockFetchBlocksMetadataResults) EXPECT() *MockFetchBlocksMetadataResultsMockRecorder { 217 return m.recorder 218 } 219 220 // Add mocks base method. 221 func (m *MockFetchBlocksMetadataResults) Add(res FetchBlocksMetadataResult) { 222 m.ctrl.T.Helper() 223 m.ctrl.Call(m, "Add", res) 224 } 225 226 // Add indicates an expected call of Add. 227 func (mr *MockFetchBlocksMetadataResultsMockRecorder) Add(res interface{}) *gomock.Call { 228 mr.mock.ctrl.T.Helper() 229 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockFetchBlocksMetadataResults)(nil).Add), res) 230 } 231 232 // Close mocks base method. 233 func (m *MockFetchBlocksMetadataResults) Close() { 234 m.ctrl.T.Helper() 235 m.ctrl.Call(m, "Close") 236 } 237 238 // Close indicates an expected call of Close. 239 func (mr *MockFetchBlocksMetadataResultsMockRecorder) Close() *gomock.Call { 240 mr.mock.ctrl.T.Helper() 241 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockFetchBlocksMetadataResults)(nil).Close)) 242 } 243 244 // Reset mocks base method. 245 func (m *MockFetchBlocksMetadataResults) Reset() { 246 m.ctrl.T.Helper() 247 m.ctrl.Call(m, "Reset") 248 } 249 250 // Reset indicates an expected call of Reset. 251 func (mr *MockFetchBlocksMetadataResultsMockRecorder) Reset() *gomock.Call { 252 mr.mock.ctrl.T.Helper() 253 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockFetchBlocksMetadataResults)(nil).Reset)) 254 } 255 256 // Results mocks base method. 257 func (m *MockFetchBlocksMetadataResults) Results() []FetchBlocksMetadataResult { 258 m.ctrl.T.Helper() 259 ret := m.ctrl.Call(m, "Results") 260 ret0, _ := ret[0].([]FetchBlocksMetadataResult) 261 return ret0 262 } 263 264 // Results indicates an expected call of Results. 265 func (mr *MockFetchBlocksMetadataResultsMockRecorder) Results() *gomock.Call { 266 mr.mock.ctrl.T.Helper() 267 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Results", reflect.TypeOf((*MockFetchBlocksMetadataResults)(nil).Results)) 268 } 269 270 // MockDatabaseBlock is a mock of DatabaseBlock interface. 271 type MockDatabaseBlock struct { 272 ctrl *gomock.Controller 273 recorder *MockDatabaseBlockMockRecorder 274 } 275 276 // MockDatabaseBlockMockRecorder is the mock recorder for MockDatabaseBlock. 277 type MockDatabaseBlockMockRecorder struct { 278 mock *MockDatabaseBlock 279 } 280 281 // NewMockDatabaseBlock creates a new mock instance. 282 func NewMockDatabaseBlock(ctrl *gomock.Controller) *MockDatabaseBlock { 283 mock := &MockDatabaseBlock{ctrl: ctrl} 284 mock.recorder = &MockDatabaseBlockMockRecorder{mock} 285 return mock 286 } 287 288 // EXPECT returns an object that allows the caller to indicate expected use. 289 func (m *MockDatabaseBlock) EXPECT() *MockDatabaseBlockMockRecorder { 290 return m.recorder 291 } 292 293 // BlockSize mocks base method. 294 func (m *MockDatabaseBlock) BlockSize() time.Duration { 295 m.ctrl.T.Helper() 296 ret := m.ctrl.Call(m, "BlockSize") 297 ret0, _ := ret[0].(time.Duration) 298 return ret0 299 } 300 301 // BlockSize indicates an expected call of BlockSize. 302 func (mr *MockDatabaseBlockMockRecorder) BlockSize() *gomock.Call { 303 mr.mock.ctrl.T.Helper() 304 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockSize", reflect.TypeOf((*MockDatabaseBlock)(nil).BlockSize)) 305 } 306 307 // Checksum mocks base method. 308 func (m *MockDatabaseBlock) Checksum() (uint32, error) { 309 m.ctrl.T.Helper() 310 ret := m.ctrl.Call(m, "Checksum") 311 ret0, _ := ret[0].(uint32) 312 ret1, _ := ret[1].(error) 313 return ret0, ret1 314 } 315 316 // Checksum indicates an expected call of Checksum. 317 func (mr *MockDatabaseBlockMockRecorder) Checksum() *gomock.Call { 318 mr.mock.ctrl.T.Helper() 319 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Checksum", reflect.TypeOf((*MockDatabaseBlock)(nil).Checksum)) 320 } 321 322 // Close mocks base method. 323 func (m *MockDatabaseBlock) Close() { 324 m.ctrl.T.Helper() 325 m.ctrl.Call(m, "Close") 326 } 327 328 // Close indicates an expected call of Close. 329 func (mr *MockDatabaseBlockMockRecorder) Close() *gomock.Call { 330 mr.mock.ctrl.T.Helper() 331 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockDatabaseBlock)(nil).Close)) 332 } 333 334 // CloseIfFromDisk mocks base method. 335 func (m *MockDatabaseBlock) CloseIfFromDisk() bool { 336 m.ctrl.T.Helper() 337 ret := m.ctrl.Call(m, "CloseIfFromDisk") 338 ret0, _ := ret[0].(bool) 339 return ret0 340 } 341 342 // CloseIfFromDisk indicates an expected call of CloseIfFromDisk. 343 func (mr *MockDatabaseBlockMockRecorder) CloseIfFromDisk() *gomock.Call { 344 mr.mock.ctrl.T.Helper() 345 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseIfFromDisk", reflect.TypeOf((*MockDatabaseBlock)(nil).CloseIfFromDisk)) 346 } 347 348 // Discard mocks base method. 349 func (m *MockDatabaseBlock) Discard() ts.Segment { 350 m.ctrl.T.Helper() 351 ret := m.ctrl.Call(m, "Discard") 352 ret0, _ := ret[0].(ts.Segment) 353 return ret0 354 } 355 356 // Discard indicates an expected call of Discard. 357 func (mr *MockDatabaseBlockMockRecorder) Discard() *gomock.Call { 358 mr.mock.ctrl.T.Helper() 359 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Discard", reflect.TypeOf((*MockDatabaseBlock)(nil).Discard)) 360 } 361 362 // Empty mocks base method. 363 func (m *MockDatabaseBlock) Empty() bool { 364 m.ctrl.T.Helper() 365 ret := m.ctrl.Call(m, "Empty") 366 ret0, _ := ret[0].(bool) 367 return ret0 368 } 369 370 // Empty indicates an expected call of Empty. 371 func (mr *MockDatabaseBlockMockRecorder) Empty() *gomock.Call { 372 mr.mock.ctrl.T.Helper() 373 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Empty", reflect.TypeOf((*MockDatabaseBlock)(nil).Empty)) 374 } 375 376 // HasMergeTarget mocks base method. 377 func (m *MockDatabaseBlock) HasMergeTarget() bool { 378 m.ctrl.T.Helper() 379 ret := m.ctrl.Call(m, "HasMergeTarget") 380 ret0, _ := ret[0].(bool) 381 return ret0 382 } 383 384 // HasMergeTarget indicates an expected call of HasMergeTarget. 385 func (mr *MockDatabaseBlockMockRecorder) HasMergeTarget() *gomock.Call { 386 mr.mock.ctrl.T.Helper() 387 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasMergeTarget", reflect.TypeOf((*MockDatabaseBlock)(nil).HasMergeTarget)) 388 } 389 390 // LastReadTime mocks base method. 391 func (m *MockDatabaseBlock) LastReadTime() time0.UnixNano { 392 m.ctrl.T.Helper() 393 ret := m.ctrl.Call(m, "LastReadTime") 394 ret0, _ := ret[0].(time0.UnixNano) 395 return ret0 396 } 397 398 // LastReadTime indicates an expected call of LastReadTime. 399 func (mr *MockDatabaseBlockMockRecorder) LastReadTime() *gomock.Call { 400 mr.mock.ctrl.T.Helper() 401 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LastReadTime", reflect.TypeOf((*MockDatabaseBlock)(nil).LastReadTime)) 402 } 403 404 // Len mocks base method. 405 func (m *MockDatabaseBlock) Len() int { 406 m.ctrl.T.Helper() 407 ret := m.ctrl.Call(m, "Len") 408 ret0, _ := ret[0].(int) 409 return ret0 410 } 411 412 // Len indicates an expected call of Len. 413 func (mr *MockDatabaseBlockMockRecorder) Len() *gomock.Call { 414 mr.mock.ctrl.T.Helper() 415 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Len", reflect.TypeOf((*MockDatabaseBlock)(nil).Len)) 416 } 417 418 // Merge mocks base method. 419 func (m *MockDatabaseBlock) Merge(other DatabaseBlock) error { 420 m.ctrl.T.Helper() 421 ret := m.ctrl.Call(m, "Merge", other) 422 ret0, _ := ret[0].(error) 423 return ret0 424 } 425 426 // Merge indicates an expected call of Merge. 427 func (mr *MockDatabaseBlockMockRecorder) Merge(other interface{}) *gomock.Call { 428 mr.mock.ctrl.T.Helper() 429 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Merge", reflect.TypeOf((*MockDatabaseBlock)(nil).Merge), other) 430 } 431 432 // OnEvictedFromWiredList mocks base method. 433 func (m *MockDatabaseBlock) OnEvictedFromWiredList() OnEvictedFromWiredList { 434 m.ctrl.T.Helper() 435 ret := m.ctrl.Call(m, "OnEvictedFromWiredList") 436 ret0, _ := ret[0].(OnEvictedFromWiredList) 437 return ret0 438 } 439 440 // OnEvictedFromWiredList indicates an expected call of OnEvictedFromWiredList. 441 func (mr *MockDatabaseBlockMockRecorder) OnEvictedFromWiredList() *gomock.Call { 442 mr.mock.ctrl.T.Helper() 443 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnEvictedFromWiredList", reflect.TypeOf((*MockDatabaseBlock)(nil).OnEvictedFromWiredList)) 444 } 445 446 // Reset mocks base method. 447 func (m *MockDatabaseBlock) Reset(startTime time0.UnixNano, blockSize time.Duration, segment ts.Segment, nsCtx namespace.Context) { 448 m.ctrl.T.Helper() 449 m.ctrl.Call(m, "Reset", startTime, blockSize, segment, nsCtx) 450 } 451 452 // Reset indicates an expected call of Reset. 453 func (mr *MockDatabaseBlockMockRecorder) Reset(startTime, blockSize, segment, nsCtx interface{}) *gomock.Call { 454 mr.mock.ctrl.T.Helper() 455 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockDatabaseBlock)(nil).Reset), startTime, blockSize, segment, nsCtx) 456 } 457 458 // ResetFromDisk mocks base method. 459 func (m *MockDatabaseBlock) ResetFromDisk(startTime time0.UnixNano, blockSize time.Duration, segment ts.Segment, id ident.ID, nsCtx namespace.Context) { 460 m.ctrl.T.Helper() 461 m.ctrl.Call(m, "ResetFromDisk", startTime, blockSize, segment, id, nsCtx) 462 } 463 464 // ResetFromDisk indicates an expected call of ResetFromDisk. 465 func (mr *MockDatabaseBlockMockRecorder) ResetFromDisk(startTime, blockSize, segment, id, nsCtx interface{}) *gomock.Call { 466 mr.mock.ctrl.T.Helper() 467 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetFromDisk", reflect.TypeOf((*MockDatabaseBlock)(nil).ResetFromDisk), startTime, blockSize, segment, id, nsCtx) 468 } 469 470 // SetLastReadTime mocks base method. 471 func (m *MockDatabaseBlock) SetLastReadTime(value time0.UnixNano) { 472 m.ctrl.T.Helper() 473 m.ctrl.Call(m, "SetLastReadTime", value) 474 } 475 476 // SetLastReadTime indicates an expected call of SetLastReadTime. 477 func (mr *MockDatabaseBlockMockRecorder) SetLastReadTime(value interface{}) *gomock.Call { 478 mr.mock.ctrl.T.Helper() 479 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLastReadTime", reflect.TypeOf((*MockDatabaseBlock)(nil).SetLastReadTime), value) 480 } 481 482 // SetOnEvictedFromWiredList mocks base method. 483 func (m *MockDatabaseBlock) SetOnEvictedFromWiredList(arg0 OnEvictedFromWiredList) { 484 m.ctrl.T.Helper() 485 m.ctrl.Call(m, "SetOnEvictedFromWiredList", arg0) 486 } 487 488 // SetOnEvictedFromWiredList indicates an expected call of SetOnEvictedFromWiredList. 489 func (mr *MockDatabaseBlockMockRecorder) SetOnEvictedFromWiredList(arg0 interface{}) *gomock.Call { 490 mr.mock.ctrl.T.Helper() 491 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetOnEvictedFromWiredList", reflect.TypeOf((*MockDatabaseBlock)(nil).SetOnEvictedFromWiredList), arg0) 492 } 493 494 // StartTime mocks base method. 495 func (m *MockDatabaseBlock) StartTime() time0.UnixNano { 496 m.ctrl.T.Helper() 497 ret := m.ctrl.Call(m, "StartTime") 498 ret0, _ := ret[0].(time0.UnixNano) 499 return ret0 500 } 501 502 // StartTime indicates an expected call of StartTime. 503 func (mr *MockDatabaseBlockMockRecorder) StartTime() *gomock.Call { 504 mr.mock.ctrl.T.Helper() 505 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartTime", reflect.TypeOf((*MockDatabaseBlock)(nil).StartTime)) 506 } 507 508 // Stream mocks base method. 509 func (m *MockDatabaseBlock) Stream(blocker context.Context) (xio.BlockReader, error) { 510 m.ctrl.T.Helper() 511 ret := m.ctrl.Call(m, "Stream", blocker) 512 ret0, _ := ret[0].(xio.BlockReader) 513 ret1, _ := ret[1].(error) 514 return ret0, ret1 515 } 516 517 // Stream indicates an expected call of Stream. 518 func (mr *MockDatabaseBlockMockRecorder) Stream(blocker interface{}) *gomock.Call { 519 mr.mock.ctrl.T.Helper() 520 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stream", reflect.TypeOf((*MockDatabaseBlock)(nil).Stream), blocker) 521 } 522 523 // WasRetrievedFromDisk mocks base method. 524 func (m *MockDatabaseBlock) WasRetrievedFromDisk() bool { 525 m.ctrl.T.Helper() 526 ret := m.ctrl.Call(m, "WasRetrievedFromDisk") 527 ret0, _ := ret[0].(bool) 528 return ret0 529 } 530 531 // WasRetrievedFromDisk indicates an expected call of WasRetrievedFromDisk. 532 func (mr *MockDatabaseBlockMockRecorder) WasRetrievedFromDisk() *gomock.Call { 533 mr.mock.ctrl.T.Helper() 534 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WasRetrievedFromDisk", reflect.TypeOf((*MockDatabaseBlock)(nil).WasRetrievedFromDisk)) 535 } 536 537 // enteredListAtUnixNano mocks base method. 538 func (m *MockDatabaseBlock) enteredListAtUnixNano() int64 { 539 m.ctrl.T.Helper() 540 ret := m.ctrl.Call(m, "enteredListAtUnixNano") 541 ret0, _ := ret[0].(int64) 542 return ret0 543 } 544 545 // enteredListAtUnixNano indicates an expected call of enteredListAtUnixNano. 546 func (mr *MockDatabaseBlockMockRecorder) enteredListAtUnixNano() *gomock.Call { 547 mr.mock.ctrl.T.Helper() 548 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "enteredListAtUnixNano", reflect.TypeOf((*MockDatabaseBlock)(nil).enteredListAtUnixNano)) 549 } 550 551 // next mocks base method. 552 func (m *MockDatabaseBlock) next() DatabaseBlock { 553 m.ctrl.T.Helper() 554 ret := m.ctrl.Call(m, "next") 555 ret0, _ := ret[0].(DatabaseBlock) 556 return ret0 557 } 558 559 // next indicates an expected call of next. 560 func (mr *MockDatabaseBlockMockRecorder) next() *gomock.Call { 561 mr.mock.ctrl.T.Helper() 562 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "next", reflect.TypeOf((*MockDatabaseBlock)(nil).next)) 563 } 564 565 // prev mocks base method. 566 func (m *MockDatabaseBlock) prev() DatabaseBlock { 567 m.ctrl.T.Helper() 568 ret := m.ctrl.Call(m, "prev") 569 ret0, _ := ret[0].(DatabaseBlock) 570 return ret0 571 } 572 573 // prev indicates an expected call of prev. 574 func (mr *MockDatabaseBlockMockRecorder) prev() *gomock.Call { 575 mr.mock.ctrl.T.Helper() 576 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "prev", reflect.TypeOf((*MockDatabaseBlock)(nil).prev)) 577 } 578 579 // setEnteredListAtUnixNano mocks base method. 580 func (m *MockDatabaseBlock) setEnteredListAtUnixNano(value int64) { 581 m.ctrl.T.Helper() 582 m.ctrl.Call(m, "setEnteredListAtUnixNano", value) 583 } 584 585 // setEnteredListAtUnixNano indicates an expected call of setEnteredListAtUnixNano. 586 func (mr *MockDatabaseBlockMockRecorder) setEnteredListAtUnixNano(value interface{}) *gomock.Call { 587 mr.mock.ctrl.T.Helper() 588 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "setEnteredListAtUnixNano", reflect.TypeOf((*MockDatabaseBlock)(nil).setEnteredListAtUnixNano), value) 589 } 590 591 // setNext mocks base method. 592 func (m *MockDatabaseBlock) setNext(block DatabaseBlock) { 593 m.ctrl.T.Helper() 594 m.ctrl.Call(m, "setNext", block) 595 } 596 597 // setNext indicates an expected call of setNext. 598 func (mr *MockDatabaseBlockMockRecorder) setNext(block interface{}) *gomock.Call { 599 mr.mock.ctrl.T.Helper() 600 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "setNext", reflect.TypeOf((*MockDatabaseBlock)(nil).setNext), block) 601 } 602 603 // setPrev mocks base method. 604 func (m *MockDatabaseBlock) setPrev(block DatabaseBlock) { 605 m.ctrl.T.Helper() 606 m.ctrl.Call(m, "setPrev", block) 607 } 608 609 // setPrev indicates an expected call of setPrev. 610 func (mr *MockDatabaseBlockMockRecorder) setPrev(block interface{}) *gomock.Call { 611 mr.mock.ctrl.T.Helper() 612 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "setPrev", reflect.TypeOf((*MockDatabaseBlock)(nil).setPrev), block) 613 } 614 615 // wiredListEntry mocks base method. 616 func (m *MockDatabaseBlock) wiredListEntry() wiredListEntry { 617 m.ctrl.T.Helper() 618 ret := m.ctrl.Call(m, "wiredListEntry") 619 ret0, _ := ret[0].(wiredListEntry) 620 return ret0 621 } 622 623 // wiredListEntry indicates an expected call of wiredListEntry. 624 func (mr *MockDatabaseBlockMockRecorder) wiredListEntry() *gomock.Call { 625 mr.mock.ctrl.T.Helper() 626 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "wiredListEntry", reflect.TypeOf((*MockDatabaseBlock)(nil).wiredListEntry)) 627 } 628 629 // MockdatabaseBlock is a mock of databaseBlock interface. 630 type MockdatabaseBlock struct { 631 ctrl *gomock.Controller 632 recorder *MockdatabaseBlockMockRecorder 633 } 634 635 // MockdatabaseBlockMockRecorder is the mock recorder for MockdatabaseBlock. 636 type MockdatabaseBlockMockRecorder struct { 637 mock *MockdatabaseBlock 638 } 639 640 // NewMockdatabaseBlock creates a new mock instance. 641 func NewMockdatabaseBlock(ctrl *gomock.Controller) *MockdatabaseBlock { 642 mock := &MockdatabaseBlock{ctrl: ctrl} 643 mock.recorder = &MockdatabaseBlockMockRecorder{mock} 644 return mock 645 } 646 647 // EXPECT returns an object that allows the caller to indicate expected use. 648 func (m *MockdatabaseBlock) EXPECT() *MockdatabaseBlockMockRecorder { 649 return m.recorder 650 } 651 652 // enteredListAtUnixNano mocks base method. 653 func (m *MockdatabaseBlock) enteredListAtUnixNano() int64 { 654 m.ctrl.T.Helper() 655 ret := m.ctrl.Call(m, "enteredListAtUnixNano") 656 ret0, _ := ret[0].(int64) 657 return ret0 658 } 659 660 // enteredListAtUnixNano indicates an expected call of enteredListAtUnixNano. 661 func (mr *MockdatabaseBlockMockRecorder) enteredListAtUnixNano() *gomock.Call { 662 mr.mock.ctrl.T.Helper() 663 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "enteredListAtUnixNano", reflect.TypeOf((*MockdatabaseBlock)(nil).enteredListAtUnixNano)) 664 } 665 666 // next mocks base method. 667 func (m *MockdatabaseBlock) next() DatabaseBlock { 668 m.ctrl.T.Helper() 669 ret := m.ctrl.Call(m, "next") 670 ret0, _ := ret[0].(DatabaseBlock) 671 return ret0 672 } 673 674 // next indicates an expected call of next. 675 func (mr *MockdatabaseBlockMockRecorder) next() *gomock.Call { 676 mr.mock.ctrl.T.Helper() 677 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "next", reflect.TypeOf((*MockdatabaseBlock)(nil).next)) 678 } 679 680 // prev mocks base method. 681 func (m *MockdatabaseBlock) prev() DatabaseBlock { 682 m.ctrl.T.Helper() 683 ret := m.ctrl.Call(m, "prev") 684 ret0, _ := ret[0].(DatabaseBlock) 685 return ret0 686 } 687 688 // prev indicates an expected call of prev. 689 func (mr *MockdatabaseBlockMockRecorder) prev() *gomock.Call { 690 mr.mock.ctrl.T.Helper() 691 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "prev", reflect.TypeOf((*MockdatabaseBlock)(nil).prev)) 692 } 693 694 // setEnteredListAtUnixNano mocks base method. 695 func (m *MockdatabaseBlock) setEnteredListAtUnixNano(value int64) { 696 m.ctrl.T.Helper() 697 m.ctrl.Call(m, "setEnteredListAtUnixNano", value) 698 } 699 700 // setEnteredListAtUnixNano indicates an expected call of setEnteredListAtUnixNano. 701 func (mr *MockdatabaseBlockMockRecorder) setEnteredListAtUnixNano(value interface{}) *gomock.Call { 702 mr.mock.ctrl.T.Helper() 703 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "setEnteredListAtUnixNano", reflect.TypeOf((*MockdatabaseBlock)(nil).setEnteredListAtUnixNano), value) 704 } 705 706 // setNext mocks base method. 707 func (m *MockdatabaseBlock) setNext(block DatabaseBlock) { 708 m.ctrl.T.Helper() 709 m.ctrl.Call(m, "setNext", block) 710 } 711 712 // setNext indicates an expected call of setNext. 713 func (mr *MockdatabaseBlockMockRecorder) setNext(block interface{}) *gomock.Call { 714 mr.mock.ctrl.T.Helper() 715 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "setNext", reflect.TypeOf((*MockdatabaseBlock)(nil).setNext), block) 716 } 717 718 // setPrev mocks base method. 719 func (m *MockdatabaseBlock) setPrev(block DatabaseBlock) { 720 m.ctrl.T.Helper() 721 m.ctrl.Call(m, "setPrev", block) 722 } 723 724 // setPrev indicates an expected call of setPrev. 725 func (mr *MockdatabaseBlockMockRecorder) setPrev(block interface{}) *gomock.Call { 726 mr.mock.ctrl.T.Helper() 727 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "setPrev", reflect.TypeOf((*MockdatabaseBlock)(nil).setPrev), block) 728 } 729 730 // wiredListEntry mocks base method. 731 func (m *MockdatabaseBlock) wiredListEntry() wiredListEntry { 732 m.ctrl.T.Helper() 733 ret := m.ctrl.Call(m, "wiredListEntry") 734 ret0, _ := ret[0].(wiredListEntry) 735 return ret0 736 } 737 738 // wiredListEntry indicates an expected call of wiredListEntry. 739 func (mr *MockdatabaseBlockMockRecorder) wiredListEntry() *gomock.Call { 740 mr.mock.ctrl.T.Helper() 741 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "wiredListEntry", reflect.TypeOf((*MockdatabaseBlock)(nil).wiredListEntry)) 742 } 743 744 // MockOnEvictedFromWiredList is a mock of OnEvictedFromWiredList interface. 745 type MockOnEvictedFromWiredList struct { 746 ctrl *gomock.Controller 747 recorder *MockOnEvictedFromWiredListMockRecorder 748 } 749 750 // MockOnEvictedFromWiredListMockRecorder is the mock recorder for MockOnEvictedFromWiredList. 751 type MockOnEvictedFromWiredListMockRecorder struct { 752 mock *MockOnEvictedFromWiredList 753 } 754 755 // NewMockOnEvictedFromWiredList creates a new mock instance. 756 func NewMockOnEvictedFromWiredList(ctrl *gomock.Controller) *MockOnEvictedFromWiredList { 757 mock := &MockOnEvictedFromWiredList{ctrl: ctrl} 758 mock.recorder = &MockOnEvictedFromWiredListMockRecorder{mock} 759 return mock 760 } 761 762 // EXPECT returns an object that allows the caller to indicate expected use. 763 func (m *MockOnEvictedFromWiredList) EXPECT() *MockOnEvictedFromWiredListMockRecorder { 764 return m.recorder 765 } 766 767 // OnEvictedFromWiredList mocks base method. 768 func (m *MockOnEvictedFromWiredList) OnEvictedFromWiredList(id ident.ID, blockStart time0.UnixNano) { 769 m.ctrl.T.Helper() 770 m.ctrl.Call(m, "OnEvictedFromWiredList", id, blockStart) 771 } 772 773 // OnEvictedFromWiredList indicates an expected call of OnEvictedFromWiredList. 774 func (mr *MockOnEvictedFromWiredListMockRecorder) OnEvictedFromWiredList(id, blockStart interface{}) *gomock.Call { 775 mr.mock.ctrl.T.Helper() 776 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnEvictedFromWiredList", reflect.TypeOf((*MockOnEvictedFromWiredList)(nil).OnEvictedFromWiredList), id, blockStart) 777 } 778 779 // MockOnRetrieveBlock is a mock of OnRetrieveBlock interface. 780 type MockOnRetrieveBlock struct { 781 ctrl *gomock.Controller 782 recorder *MockOnRetrieveBlockMockRecorder 783 } 784 785 // MockOnRetrieveBlockMockRecorder is the mock recorder for MockOnRetrieveBlock. 786 type MockOnRetrieveBlockMockRecorder struct { 787 mock *MockOnRetrieveBlock 788 } 789 790 // NewMockOnRetrieveBlock creates a new mock instance. 791 func NewMockOnRetrieveBlock(ctrl *gomock.Controller) *MockOnRetrieveBlock { 792 mock := &MockOnRetrieveBlock{ctrl: ctrl} 793 mock.recorder = &MockOnRetrieveBlockMockRecorder{mock} 794 return mock 795 } 796 797 // EXPECT returns an object that allows the caller to indicate expected use. 798 func (m *MockOnRetrieveBlock) EXPECT() *MockOnRetrieveBlockMockRecorder { 799 return m.recorder 800 } 801 802 // OnRetrieveBlock mocks base method. 803 func (m *MockOnRetrieveBlock) OnRetrieveBlock(id ident.ID, tags ident.TagIterator, startTime time0.UnixNano, segment ts.Segment, nsCtx namespace.Context) { 804 m.ctrl.T.Helper() 805 m.ctrl.Call(m, "OnRetrieveBlock", id, tags, startTime, segment, nsCtx) 806 } 807 808 // OnRetrieveBlock indicates an expected call of OnRetrieveBlock. 809 func (mr *MockOnRetrieveBlockMockRecorder) OnRetrieveBlock(id, tags, startTime, segment, nsCtx interface{}) *gomock.Call { 810 mr.mock.ctrl.T.Helper() 811 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnRetrieveBlock", reflect.TypeOf((*MockOnRetrieveBlock)(nil).OnRetrieveBlock), id, tags, startTime, segment, nsCtx) 812 } 813 814 // MockOnReadBlock is a mock of OnReadBlock interface. 815 type MockOnReadBlock struct { 816 ctrl *gomock.Controller 817 recorder *MockOnReadBlockMockRecorder 818 } 819 820 // MockOnReadBlockMockRecorder is the mock recorder for MockOnReadBlock. 821 type MockOnReadBlockMockRecorder struct { 822 mock *MockOnReadBlock 823 } 824 825 // NewMockOnReadBlock creates a new mock instance. 826 func NewMockOnReadBlock(ctrl *gomock.Controller) *MockOnReadBlock { 827 mock := &MockOnReadBlock{ctrl: ctrl} 828 mock.recorder = &MockOnReadBlockMockRecorder{mock} 829 return mock 830 } 831 832 // EXPECT returns an object that allows the caller to indicate expected use. 833 func (m *MockOnReadBlock) EXPECT() *MockOnReadBlockMockRecorder { 834 return m.recorder 835 } 836 837 // OnReadBlock mocks base method. 838 func (m *MockOnReadBlock) OnReadBlock(b DatabaseBlock) { 839 m.ctrl.T.Helper() 840 m.ctrl.Call(m, "OnReadBlock", b) 841 } 842 843 // OnReadBlock indicates an expected call of OnReadBlock. 844 func (mr *MockOnReadBlockMockRecorder) OnReadBlock(b interface{}) *gomock.Call { 845 mr.mock.ctrl.T.Helper() 846 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnReadBlock", reflect.TypeOf((*MockOnReadBlock)(nil).OnReadBlock), b) 847 } 848 849 // MockDatabaseBlockRetriever is a mock of DatabaseBlockRetriever interface. 850 type MockDatabaseBlockRetriever struct { 851 ctrl *gomock.Controller 852 recorder *MockDatabaseBlockRetrieverMockRecorder 853 } 854 855 // MockDatabaseBlockRetrieverMockRecorder is the mock recorder for MockDatabaseBlockRetriever. 856 type MockDatabaseBlockRetrieverMockRecorder struct { 857 mock *MockDatabaseBlockRetriever 858 } 859 860 // NewMockDatabaseBlockRetriever creates a new mock instance. 861 func NewMockDatabaseBlockRetriever(ctrl *gomock.Controller) *MockDatabaseBlockRetriever { 862 mock := &MockDatabaseBlockRetriever{ctrl: ctrl} 863 mock.recorder = &MockDatabaseBlockRetrieverMockRecorder{mock} 864 return mock 865 } 866 867 // EXPECT returns an object that allows the caller to indicate expected use. 868 func (m *MockDatabaseBlockRetriever) EXPECT() *MockDatabaseBlockRetrieverMockRecorder { 869 return m.recorder 870 } 871 872 // AssignShardSet mocks base method. 873 func (m *MockDatabaseBlockRetriever) AssignShardSet(shardSet sharding.ShardSet) { 874 m.ctrl.T.Helper() 875 m.ctrl.Call(m, "AssignShardSet", shardSet) 876 } 877 878 // AssignShardSet indicates an expected call of AssignShardSet. 879 func (mr *MockDatabaseBlockRetrieverMockRecorder) AssignShardSet(shardSet interface{}) *gomock.Call { 880 mr.mock.ctrl.T.Helper() 881 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssignShardSet", reflect.TypeOf((*MockDatabaseBlockRetriever)(nil).AssignShardSet), shardSet) 882 } 883 884 // CacheShardIndices mocks base method. 885 func (m *MockDatabaseBlockRetriever) CacheShardIndices(shards []uint32) error { 886 m.ctrl.T.Helper() 887 ret := m.ctrl.Call(m, "CacheShardIndices", shards) 888 ret0, _ := ret[0].(error) 889 return ret0 890 } 891 892 // CacheShardIndices indicates an expected call of CacheShardIndices. 893 func (mr *MockDatabaseBlockRetrieverMockRecorder) CacheShardIndices(shards interface{}) *gomock.Call { 894 mr.mock.ctrl.T.Helper() 895 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CacheShardIndices", reflect.TypeOf((*MockDatabaseBlockRetriever)(nil).CacheShardIndices), shards) 896 } 897 898 // Close mocks base method. 899 func (m *MockDatabaseBlockRetriever) Close() error { 900 m.ctrl.T.Helper() 901 ret := m.ctrl.Call(m, "Close") 902 ret0, _ := ret[0].(error) 903 return ret0 904 } 905 906 // Close indicates an expected call of Close. 907 func (mr *MockDatabaseBlockRetrieverMockRecorder) Close() *gomock.Call { 908 mr.mock.ctrl.T.Helper() 909 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockDatabaseBlockRetriever)(nil).Close)) 910 } 911 912 // Stream mocks base method. 913 func (m *MockDatabaseBlockRetriever) Stream(ctx context.Context, shard uint32, id ident.ID, blockStart time0.UnixNano, onRetrieve OnRetrieveBlock, nsCtx namespace.Context) (xio.BlockReader, error) { 914 m.ctrl.T.Helper() 915 ret := m.ctrl.Call(m, "Stream", ctx, shard, id, blockStart, onRetrieve, nsCtx) 916 ret0, _ := ret[0].(xio.BlockReader) 917 ret1, _ := ret[1].(error) 918 return ret0, ret1 919 } 920 921 // Stream indicates an expected call of Stream. 922 func (mr *MockDatabaseBlockRetrieverMockRecorder) Stream(ctx, shard, id, blockStart, onRetrieve, nsCtx interface{}) *gomock.Call { 923 mr.mock.ctrl.T.Helper() 924 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stream", reflect.TypeOf((*MockDatabaseBlockRetriever)(nil).Stream), ctx, shard, id, blockStart, onRetrieve, nsCtx) 925 } 926 927 // MockDatabaseShardBlockRetriever is a mock of DatabaseShardBlockRetriever interface. 928 type MockDatabaseShardBlockRetriever struct { 929 ctrl *gomock.Controller 930 recorder *MockDatabaseShardBlockRetrieverMockRecorder 931 } 932 933 // MockDatabaseShardBlockRetrieverMockRecorder is the mock recorder for MockDatabaseShardBlockRetriever. 934 type MockDatabaseShardBlockRetrieverMockRecorder struct { 935 mock *MockDatabaseShardBlockRetriever 936 } 937 938 // NewMockDatabaseShardBlockRetriever creates a new mock instance. 939 func NewMockDatabaseShardBlockRetriever(ctrl *gomock.Controller) *MockDatabaseShardBlockRetriever { 940 mock := &MockDatabaseShardBlockRetriever{ctrl: ctrl} 941 mock.recorder = &MockDatabaseShardBlockRetrieverMockRecorder{mock} 942 return mock 943 } 944 945 // EXPECT returns an object that allows the caller to indicate expected use. 946 func (m *MockDatabaseShardBlockRetriever) EXPECT() *MockDatabaseShardBlockRetrieverMockRecorder { 947 return m.recorder 948 } 949 950 // Stream mocks base method. 951 func (m *MockDatabaseShardBlockRetriever) Stream(ctx context.Context, id ident.ID, blockStart time0.UnixNano, onRetrieve OnRetrieveBlock, nsCtx namespace.Context) (xio.BlockReader, error) { 952 m.ctrl.T.Helper() 953 ret := m.ctrl.Call(m, "Stream", ctx, id, blockStart, onRetrieve, nsCtx) 954 ret0, _ := ret[0].(xio.BlockReader) 955 ret1, _ := ret[1].(error) 956 return ret0, ret1 957 } 958 959 // Stream indicates an expected call of Stream. 960 func (mr *MockDatabaseShardBlockRetrieverMockRecorder) Stream(ctx, id, blockStart, onRetrieve, nsCtx interface{}) *gomock.Call { 961 mr.mock.ctrl.T.Helper() 962 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stream", reflect.TypeOf((*MockDatabaseShardBlockRetriever)(nil).Stream), ctx, id, blockStart, onRetrieve, nsCtx) 963 } 964 965 // MockDatabaseBlockRetrieverManager is a mock of DatabaseBlockRetrieverManager interface. 966 type MockDatabaseBlockRetrieverManager struct { 967 ctrl *gomock.Controller 968 recorder *MockDatabaseBlockRetrieverManagerMockRecorder 969 } 970 971 // MockDatabaseBlockRetrieverManagerMockRecorder is the mock recorder for MockDatabaseBlockRetrieverManager. 972 type MockDatabaseBlockRetrieverManagerMockRecorder struct { 973 mock *MockDatabaseBlockRetrieverManager 974 } 975 976 // NewMockDatabaseBlockRetrieverManager creates a new mock instance. 977 func NewMockDatabaseBlockRetrieverManager(ctrl *gomock.Controller) *MockDatabaseBlockRetrieverManager { 978 mock := &MockDatabaseBlockRetrieverManager{ctrl: ctrl} 979 mock.recorder = &MockDatabaseBlockRetrieverManagerMockRecorder{mock} 980 return mock 981 } 982 983 // EXPECT returns an object that allows the caller to indicate expected use. 984 func (m *MockDatabaseBlockRetrieverManager) EXPECT() *MockDatabaseBlockRetrieverManagerMockRecorder { 985 return m.recorder 986 } 987 988 // Retriever mocks base method. 989 func (m *MockDatabaseBlockRetrieverManager) Retriever(nsMetadata namespace.Metadata, shardSet sharding.ShardSet) (DatabaseBlockRetriever, error) { 990 m.ctrl.T.Helper() 991 ret := m.ctrl.Call(m, "Retriever", nsMetadata, shardSet) 992 ret0, _ := ret[0].(DatabaseBlockRetriever) 993 ret1, _ := ret[1].(error) 994 return ret0, ret1 995 } 996 997 // Retriever indicates an expected call of Retriever. 998 func (mr *MockDatabaseBlockRetrieverManagerMockRecorder) Retriever(nsMetadata, shardSet interface{}) *gomock.Call { 999 mr.mock.ctrl.T.Helper() 1000 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Retriever", reflect.TypeOf((*MockDatabaseBlockRetrieverManager)(nil).Retriever), nsMetadata, shardSet) 1001 } 1002 1003 // MockDatabaseShardBlockRetrieverManager is a mock of DatabaseShardBlockRetrieverManager interface. 1004 type MockDatabaseShardBlockRetrieverManager struct { 1005 ctrl *gomock.Controller 1006 recorder *MockDatabaseShardBlockRetrieverManagerMockRecorder 1007 } 1008 1009 // MockDatabaseShardBlockRetrieverManagerMockRecorder is the mock recorder for MockDatabaseShardBlockRetrieverManager. 1010 type MockDatabaseShardBlockRetrieverManagerMockRecorder struct { 1011 mock *MockDatabaseShardBlockRetrieverManager 1012 } 1013 1014 // NewMockDatabaseShardBlockRetrieverManager creates a new mock instance. 1015 func NewMockDatabaseShardBlockRetrieverManager(ctrl *gomock.Controller) *MockDatabaseShardBlockRetrieverManager { 1016 mock := &MockDatabaseShardBlockRetrieverManager{ctrl: ctrl} 1017 mock.recorder = &MockDatabaseShardBlockRetrieverManagerMockRecorder{mock} 1018 return mock 1019 } 1020 1021 // EXPECT returns an object that allows the caller to indicate expected use. 1022 func (m *MockDatabaseShardBlockRetrieverManager) EXPECT() *MockDatabaseShardBlockRetrieverManagerMockRecorder { 1023 return m.recorder 1024 } 1025 1026 // ShardRetriever mocks base method. 1027 func (m *MockDatabaseShardBlockRetrieverManager) ShardRetriever(shard uint32) DatabaseShardBlockRetriever { 1028 m.ctrl.T.Helper() 1029 ret := m.ctrl.Call(m, "ShardRetriever", shard) 1030 ret0, _ := ret[0].(DatabaseShardBlockRetriever) 1031 return ret0 1032 } 1033 1034 // ShardRetriever indicates an expected call of ShardRetriever. 1035 func (mr *MockDatabaseShardBlockRetrieverManagerMockRecorder) ShardRetriever(shard interface{}) *gomock.Call { 1036 mr.mock.ctrl.T.Helper() 1037 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShardRetriever", reflect.TypeOf((*MockDatabaseShardBlockRetrieverManager)(nil).ShardRetriever), shard) 1038 } 1039 1040 // MockDatabaseSeriesBlocks is a mock of DatabaseSeriesBlocks interface. 1041 type MockDatabaseSeriesBlocks struct { 1042 ctrl *gomock.Controller 1043 recorder *MockDatabaseSeriesBlocksMockRecorder 1044 } 1045 1046 // MockDatabaseSeriesBlocksMockRecorder is the mock recorder for MockDatabaseSeriesBlocks. 1047 type MockDatabaseSeriesBlocksMockRecorder struct { 1048 mock *MockDatabaseSeriesBlocks 1049 } 1050 1051 // NewMockDatabaseSeriesBlocks creates a new mock instance. 1052 func NewMockDatabaseSeriesBlocks(ctrl *gomock.Controller) *MockDatabaseSeriesBlocks { 1053 mock := &MockDatabaseSeriesBlocks{ctrl: ctrl} 1054 mock.recorder = &MockDatabaseSeriesBlocksMockRecorder{mock} 1055 return mock 1056 } 1057 1058 // EXPECT returns an object that allows the caller to indicate expected use. 1059 func (m *MockDatabaseSeriesBlocks) EXPECT() *MockDatabaseSeriesBlocksMockRecorder { 1060 return m.recorder 1061 } 1062 1063 // AddBlock mocks base method. 1064 func (m *MockDatabaseSeriesBlocks) AddBlock(block DatabaseBlock) { 1065 m.ctrl.T.Helper() 1066 m.ctrl.Call(m, "AddBlock", block) 1067 } 1068 1069 // AddBlock indicates an expected call of AddBlock. 1070 func (mr *MockDatabaseSeriesBlocksMockRecorder) AddBlock(block interface{}) *gomock.Call { 1071 mr.mock.ctrl.T.Helper() 1072 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddBlock", reflect.TypeOf((*MockDatabaseSeriesBlocks)(nil).AddBlock), block) 1073 } 1074 1075 // AddSeries mocks base method. 1076 func (m *MockDatabaseSeriesBlocks) AddSeries(other DatabaseSeriesBlocks) { 1077 m.ctrl.T.Helper() 1078 m.ctrl.Call(m, "AddSeries", other) 1079 } 1080 1081 // AddSeries indicates an expected call of AddSeries. 1082 func (mr *MockDatabaseSeriesBlocksMockRecorder) AddSeries(other interface{}) *gomock.Call { 1083 mr.mock.ctrl.T.Helper() 1084 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSeries", reflect.TypeOf((*MockDatabaseSeriesBlocks)(nil).AddSeries), other) 1085 } 1086 1087 // AllBlocks mocks base method. 1088 func (m *MockDatabaseSeriesBlocks) AllBlocks() map[time0.UnixNano]DatabaseBlock { 1089 m.ctrl.T.Helper() 1090 ret := m.ctrl.Call(m, "AllBlocks") 1091 ret0, _ := ret[0].(map[time0.UnixNano]DatabaseBlock) 1092 return ret0 1093 } 1094 1095 // AllBlocks indicates an expected call of AllBlocks. 1096 func (mr *MockDatabaseSeriesBlocksMockRecorder) AllBlocks() *gomock.Call { 1097 mr.mock.ctrl.T.Helper() 1098 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllBlocks", reflect.TypeOf((*MockDatabaseSeriesBlocks)(nil).AllBlocks)) 1099 } 1100 1101 // BlockAt mocks base method. 1102 func (m *MockDatabaseSeriesBlocks) BlockAt(t time0.UnixNano) (DatabaseBlock, bool) { 1103 m.ctrl.T.Helper() 1104 ret := m.ctrl.Call(m, "BlockAt", t) 1105 ret0, _ := ret[0].(DatabaseBlock) 1106 ret1, _ := ret[1].(bool) 1107 return ret0, ret1 1108 } 1109 1110 // BlockAt indicates an expected call of BlockAt. 1111 func (mr *MockDatabaseSeriesBlocksMockRecorder) BlockAt(t interface{}) *gomock.Call { 1112 mr.mock.ctrl.T.Helper() 1113 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockAt", reflect.TypeOf((*MockDatabaseSeriesBlocks)(nil).BlockAt), t) 1114 } 1115 1116 // Close mocks base method. 1117 func (m *MockDatabaseSeriesBlocks) Close() { 1118 m.ctrl.T.Helper() 1119 m.ctrl.Call(m, "Close") 1120 } 1121 1122 // Close indicates an expected call of Close. 1123 func (mr *MockDatabaseSeriesBlocksMockRecorder) Close() *gomock.Call { 1124 mr.mock.ctrl.T.Helper() 1125 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockDatabaseSeriesBlocks)(nil).Close)) 1126 } 1127 1128 // Len mocks base method. 1129 func (m *MockDatabaseSeriesBlocks) Len() int { 1130 m.ctrl.T.Helper() 1131 ret := m.ctrl.Call(m, "Len") 1132 ret0, _ := ret[0].(int) 1133 return ret0 1134 } 1135 1136 // Len indicates an expected call of Len. 1137 func (mr *MockDatabaseSeriesBlocksMockRecorder) Len() *gomock.Call { 1138 mr.mock.ctrl.T.Helper() 1139 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Len", reflect.TypeOf((*MockDatabaseSeriesBlocks)(nil).Len)) 1140 } 1141 1142 // MaxTime mocks base method. 1143 func (m *MockDatabaseSeriesBlocks) MaxTime() time0.UnixNano { 1144 m.ctrl.T.Helper() 1145 ret := m.ctrl.Call(m, "MaxTime") 1146 ret0, _ := ret[0].(time0.UnixNano) 1147 return ret0 1148 } 1149 1150 // MaxTime indicates an expected call of MaxTime. 1151 func (mr *MockDatabaseSeriesBlocksMockRecorder) MaxTime() *gomock.Call { 1152 mr.mock.ctrl.T.Helper() 1153 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaxTime", reflect.TypeOf((*MockDatabaseSeriesBlocks)(nil).MaxTime)) 1154 } 1155 1156 // MinTime mocks base method. 1157 func (m *MockDatabaseSeriesBlocks) MinTime() time0.UnixNano { 1158 m.ctrl.T.Helper() 1159 ret := m.ctrl.Call(m, "MinTime") 1160 ret0, _ := ret[0].(time0.UnixNano) 1161 return ret0 1162 } 1163 1164 // MinTime indicates an expected call of MinTime. 1165 func (mr *MockDatabaseSeriesBlocksMockRecorder) MinTime() *gomock.Call { 1166 mr.mock.ctrl.T.Helper() 1167 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MinTime", reflect.TypeOf((*MockDatabaseSeriesBlocks)(nil).MinTime)) 1168 } 1169 1170 // RemoveAll mocks base method. 1171 func (m *MockDatabaseSeriesBlocks) RemoveAll() { 1172 m.ctrl.T.Helper() 1173 m.ctrl.Call(m, "RemoveAll") 1174 } 1175 1176 // RemoveAll indicates an expected call of RemoveAll. 1177 func (mr *MockDatabaseSeriesBlocksMockRecorder) RemoveAll() *gomock.Call { 1178 mr.mock.ctrl.T.Helper() 1179 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveAll", reflect.TypeOf((*MockDatabaseSeriesBlocks)(nil).RemoveAll)) 1180 } 1181 1182 // RemoveBlockAt mocks base method. 1183 func (m *MockDatabaseSeriesBlocks) RemoveBlockAt(t time0.UnixNano) { 1184 m.ctrl.T.Helper() 1185 m.ctrl.Call(m, "RemoveBlockAt", t) 1186 } 1187 1188 // RemoveBlockAt indicates an expected call of RemoveBlockAt. 1189 func (mr *MockDatabaseSeriesBlocksMockRecorder) RemoveBlockAt(t interface{}) *gomock.Call { 1190 mr.mock.ctrl.T.Helper() 1191 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveBlockAt", reflect.TypeOf((*MockDatabaseSeriesBlocks)(nil).RemoveBlockAt), t) 1192 } 1193 1194 // Reset mocks base method. 1195 func (m *MockDatabaseSeriesBlocks) Reset() { 1196 m.ctrl.T.Helper() 1197 m.ctrl.Call(m, "Reset") 1198 } 1199 1200 // Reset indicates an expected call of Reset. 1201 func (mr *MockDatabaseSeriesBlocksMockRecorder) Reset() *gomock.Call { 1202 mr.mock.ctrl.T.Helper() 1203 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockDatabaseSeriesBlocks)(nil).Reset)) 1204 } 1205 1206 // MockDatabaseBlockPool is a mock of DatabaseBlockPool interface. 1207 type MockDatabaseBlockPool struct { 1208 ctrl *gomock.Controller 1209 recorder *MockDatabaseBlockPoolMockRecorder 1210 } 1211 1212 // MockDatabaseBlockPoolMockRecorder is the mock recorder for MockDatabaseBlockPool. 1213 type MockDatabaseBlockPoolMockRecorder struct { 1214 mock *MockDatabaseBlockPool 1215 } 1216 1217 // NewMockDatabaseBlockPool creates a new mock instance. 1218 func NewMockDatabaseBlockPool(ctrl *gomock.Controller) *MockDatabaseBlockPool { 1219 mock := &MockDatabaseBlockPool{ctrl: ctrl} 1220 mock.recorder = &MockDatabaseBlockPoolMockRecorder{mock} 1221 return mock 1222 } 1223 1224 // EXPECT returns an object that allows the caller to indicate expected use. 1225 func (m *MockDatabaseBlockPool) EXPECT() *MockDatabaseBlockPoolMockRecorder { 1226 return m.recorder 1227 } 1228 1229 // Get mocks base method. 1230 func (m *MockDatabaseBlockPool) Get() DatabaseBlock { 1231 m.ctrl.T.Helper() 1232 ret := m.ctrl.Call(m, "Get") 1233 ret0, _ := ret[0].(DatabaseBlock) 1234 return ret0 1235 } 1236 1237 // Get indicates an expected call of Get. 1238 func (mr *MockDatabaseBlockPoolMockRecorder) Get() *gomock.Call { 1239 mr.mock.ctrl.T.Helper() 1240 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockDatabaseBlockPool)(nil).Get)) 1241 } 1242 1243 // Init mocks base method. 1244 func (m *MockDatabaseBlockPool) Init(alloc DatabaseBlockAllocate) { 1245 m.ctrl.T.Helper() 1246 m.ctrl.Call(m, "Init", alloc) 1247 } 1248 1249 // Init indicates an expected call of Init. 1250 func (mr *MockDatabaseBlockPoolMockRecorder) Init(alloc interface{}) *gomock.Call { 1251 mr.mock.ctrl.T.Helper() 1252 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockDatabaseBlockPool)(nil).Init), alloc) 1253 } 1254 1255 // Put mocks base method. 1256 func (m *MockDatabaseBlockPool) Put(block DatabaseBlock) { 1257 m.ctrl.T.Helper() 1258 m.ctrl.Call(m, "Put", block) 1259 } 1260 1261 // Put indicates an expected call of Put. 1262 func (mr *MockDatabaseBlockPoolMockRecorder) Put(block interface{}) *gomock.Call { 1263 mr.mock.ctrl.T.Helper() 1264 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockDatabaseBlockPool)(nil).Put), block) 1265 } 1266 1267 // MockFetchBlockMetadataResultsPool is a mock of FetchBlockMetadataResultsPool interface. 1268 type MockFetchBlockMetadataResultsPool struct { 1269 ctrl *gomock.Controller 1270 recorder *MockFetchBlockMetadataResultsPoolMockRecorder 1271 } 1272 1273 // MockFetchBlockMetadataResultsPoolMockRecorder is the mock recorder for MockFetchBlockMetadataResultsPool. 1274 type MockFetchBlockMetadataResultsPoolMockRecorder struct { 1275 mock *MockFetchBlockMetadataResultsPool 1276 } 1277 1278 // NewMockFetchBlockMetadataResultsPool creates a new mock instance. 1279 func NewMockFetchBlockMetadataResultsPool(ctrl *gomock.Controller) *MockFetchBlockMetadataResultsPool { 1280 mock := &MockFetchBlockMetadataResultsPool{ctrl: ctrl} 1281 mock.recorder = &MockFetchBlockMetadataResultsPoolMockRecorder{mock} 1282 return mock 1283 } 1284 1285 // EXPECT returns an object that allows the caller to indicate expected use. 1286 func (m *MockFetchBlockMetadataResultsPool) EXPECT() *MockFetchBlockMetadataResultsPoolMockRecorder { 1287 return m.recorder 1288 } 1289 1290 // Get mocks base method. 1291 func (m *MockFetchBlockMetadataResultsPool) Get() FetchBlockMetadataResults { 1292 m.ctrl.T.Helper() 1293 ret := m.ctrl.Call(m, "Get") 1294 ret0, _ := ret[0].(FetchBlockMetadataResults) 1295 return ret0 1296 } 1297 1298 // Get indicates an expected call of Get. 1299 func (mr *MockFetchBlockMetadataResultsPoolMockRecorder) Get() *gomock.Call { 1300 mr.mock.ctrl.T.Helper() 1301 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockFetchBlockMetadataResultsPool)(nil).Get)) 1302 } 1303 1304 // Put mocks base method. 1305 func (m *MockFetchBlockMetadataResultsPool) Put(res FetchBlockMetadataResults) { 1306 m.ctrl.T.Helper() 1307 m.ctrl.Call(m, "Put", res) 1308 } 1309 1310 // Put indicates an expected call of Put. 1311 func (mr *MockFetchBlockMetadataResultsPoolMockRecorder) Put(res interface{}) *gomock.Call { 1312 mr.mock.ctrl.T.Helper() 1313 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockFetchBlockMetadataResultsPool)(nil).Put), res) 1314 } 1315 1316 // MockFetchBlocksMetadataResultsPool is a mock of FetchBlocksMetadataResultsPool interface. 1317 type MockFetchBlocksMetadataResultsPool struct { 1318 ctrl *gomock.Controller 1319 recorder *MockFetchBlocksMetadataResultsPoolMockRecorder 1320 } 1321 1322 // MockFetchBlocksMetadataResultsPoolMockRecorder is the mock recorder for MockFetchBlocksMetadataResultsPool. 1323 type MockFetchBlocksMetadataResultsPoolMockRecorder struct { 1324 mock *MockFetchBlocksMetadataResultsPool 1325 } 1326 1327 // NewMockFetchBlocksMetadataResultsPool creates a new mock instance. 1328 func NewMockFetchBlocksMetadataResultsPool(ctrl *gomock.Controller) *MockFetchBlocksMetadataResultsPool { 1329 mock := &MockFetchBlocksMetadataResultsPool{ctrl: ctrl} 1330 mock.recorder = &MockFetchBlocksMetadataResultsPoolMockRecorder{mock} 1331 return mock 1332 } 1333 1334 // EXPECT returns an object that allows the caller to indicate expected use. 1335 func (m *MockFetchBlocksMetadataResultsPool) EXPECT() *MockFetchBlocksMetadataResultsPoolMockRecorder { 1336 return m.recorder 1337 } 1338 1339 // Get mocks base method. 1340 func (m *MockFetchBlocksMetadataResultsPool) Get() FetchBlocksMetadataResults { 1341 m.ctrl.T.Helper() 1342 ret := m.ctrl.Call(m, "Get") 1343 ret0, _ := ret[0].(FetchBlocksMetadataResults) 1344 return ret0 1345 } 1346 1347 // Get indicates an expected call of Get. 1348 func (mr *MockFetchBlocksMetadataResultsPoolMockRecorder) Get() *gomock.Call { 1349 mr.mock.ctrl.T.Helper() 1350 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockFetchBlocksMetadataResultsPool)(nil).Get)) 1351 } 1352 1353 // Put mocks base method. 1354 func (m *MockFetchBlocksMetadataResultsPool) Put(res FetchBlocksMetadataResults) { 1355 m.ctrl.T.Helper() 1356 m.ctrl.Call(m, "Put", res) 1357 } 1358 1359 // Put indicates an expected call of Put. 1360 func (mr *MockFetchBlocksMetadataResultsPoolMockRecorder) Put(res interface{}) *gomock.Call { 1361 mr.mock.ctrl.T.Helper() 1362 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockFetchBlocksMetadataResultsPool)(nil).Put), res) 1363 } 1364 1365 // MockLeaseManager is a mock of LeaseManager interface. 1366 type MockLeaseManager struct { 1367 ctrl *gomock.Controller 1368 recorder *MockLeaseManagerMockRecorder 1369 } 1370 1371 // MockLeaseManagerMockRecorder is the mock recorder for MockLeaseManager. 1372 type MockLeaseManagerMockRecorder struct { 1373 mock *MockLeaseManager 1374 } 1375 1376 // NewMockLeaseManager creates a new mock instance. 1377 func NewMockLeaseManager(ctrl *gomock.Controller) *MockLeaseManager { 1378 mock := &MockLeaseManager{ctrl: ctrl} 1379 mock.recorder = &MockLeaseManagerMockRecorder{mock} 1380 return mock 1381 } 1382 1383 // EXPECT returns an object that allows the caller to indicate expected use. 1384 func (m *MockLeaseManager) EXPECT() *MockLeaseManagerMockRecorder { 1385 return m.recorder 1386 } 1387 1388 // OpenLatestLease mocks base method. 1389 func (m *MockLeaseManager) OpenLatestLease(leaser Leaser, descriptor LeaseDescriptor) (LeaseState, error) { 1390 m.ctrl.T.Helper() 1391 ret := m.ctrl.Call(m, "OpenLatestLease", leaser, descriptor) 1392 ret0, _ := ret[0].(LeaseState) 1393 ret1, _ := ret[1].(error) 1394 return ret0, ret1 1395 } 1396 1397 // OpenLatestLease indicates an expected call of OpenLatestLease. 1398 func (mr *MockLeaseManagerMockRecorder) OpenLatestLease(leaser, descriptor interface{}) *gomock.Call { 1399 mr.mock.ctrl.T.Helper() 1400 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenLatestLease", reflect.TypeOf((*MockLeaseManager)(nil).OpenLatestLease), leaser, descriptor) 1401 } 1402 1403 // OpenLease mocks base method. 1404 func (m *MockLeaseManager) OpenLease(leaser Leaser, descriptor LeaseDescriptor, state LeaseState) error { 1405 m.ctrl.T.Helper() 1406 ret := m.ctrl.Call(m, "OpenLease", leaser, descriptor, state) 1407 ret0, _ := ret[0].(error) 1408 return ret0 1409 } 1410 1411 // OpenLease indicates an expected call of OpenLease. 1412 func (mr *MockLeaseManagerMockRecorder) OpenLease(leaser, descriptor, state interface{}) *gomock.Call { 1413 mr.mock.ctrl.T.Helper() 1414 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenLease", reflect.TypeOf((*MockLeaseManager)(nil).OpenLease), leaser, descriptor, state) 1415 } 1416 1417 // RegisterLeaser mocks base method. 1418 func (m *MockLeaseManager) RegisterLeaser(leaser Leaser) error { 1419 m.ctrl.T.Helper() 1420 ret := m.ctrl.Call(m, "RegisterLeaser", leaser) 1421 ret0, _ := ret[0].(error) 1422 return ret0 1423 } 1424 1425 // RegisterLeaser indicates an expected call of RegisterLeaser. 1426 func (mr *MockLeaseManagerMockRecorder) RegisterLeaser(leaser interface{}) *gomock.Call { 1427 mr.mock.ctrl.T.Helper() 1428 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterLeaser", reflect.TypeOf((*MockLeaseManager)(nil).RegisterLeaser), leaser) 1429 } 1430 1431 // SetLeaseVerifier mocks base method. 1432 func (m *MockLeaseManager) SetLeaseVerifier(leaseVerifier LeaseVerifier) error { 1433 m.ctrl.T.Helper() 1434 ret := m.ctrl.Call(m, "SetLeaseVerifier", leaseVerifier) 1435 ret0, _ := ret[0].(error) 1436 return ret0 1437 } 1438 1439 // SetLeaseVerifier indicates an expected call of SetLeaseVerifier. 1440 func (mr *MockLeaseManagerMockRecorder) SetLeaseVerifier(leaseVerifier interface{}) *gomock.Call { 1441 mr.mock.ctrl.T.Helper() 1442 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLeaseVerifier", reflect.TypeOf((*MockLeaseManager)(nil).SetLeaseVerifier), leaseVerifier) 1443 } 1444 1445 // UnregisterLeaser mocks base method. 1446 func (m *MockLeaseManager) UnregisterLeaser(leaser Leaser) error { 1447 m.ctrl.T.Helper() 1448 ret := m.ctrl.Call(m, "UnregisterLeaser", leaser) 1449 ret0, _ := ret[0].(error) 1450 return ret0 1451 } 1452 1453 // UnregisterLeaser indicates an expected call of UnregisterLeaser. 1454 func (mr *MockLeaseManagerMockRecorder) UnregisterLeaser(leaser interface{}) *gomock.Call { 1455 mr.mock.ctrl.T.Helper() 1456 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnregisterLeaser", reflect.TypeOf((*MockLeaseManager)(nil).UnregisterLeaser), leaser) 1457 } 1458 1459 // UpdateOpenLeases mocks base method. 1460 func (m *MockLeaseManager) UpdateOpenLeases(descriptor LeaseDescriptor, state LeaseState) (UpdateLeasesResult, error) { 1461 m.ctrl.T.Helper() 1462 ret := m.ctrl.Call(m, "UpdateOpenLeases", descriptor, state) 1463 ret0, _ := ret[0].(UpdateLeasesResult) 1464 ret1, _ := ret[1].(error) 1465 return ret0, ret1 1466 } 1467 1468 // UpdateOpenLeases indicates an expected call of UpdateOpenLeases. 1469 func (mr *MockLeaseManagerMockRecorder) UpdateOpenLeases(descriptor, state interface{}) *gomock.Call { 1470 mr.mock.ctrl.T.Helper() 1471 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOpenLeases", reflect.TypeOf((*MockLeaseManager)(nil).UpdateOpenLeases), descriptor, state) 1472 } 1473 1474 // MockLeaseVerifier is a mock of LeaseVerifier interface. 1475 type MockLeaseVerifier struct { 1476 ctrl *gomock.Controller 1477 recorder *MockLeaseVerifierMockRecorder 1478 } 1479 1480 // MockLeaseVerifierMockRecorder is the mock recorder for MockLeaseVerifier. 1481 type MockLeaseVerifierMockRecorder struct { 1482 mock *MockLeaseVerifier 1483 } 1484 1485 // NewMockLeaseVerifier creates a new mock instance. 1486 func NewMockLeaseVerifier(ctrl *gomock.Controller) *MockLeaseVerifier { 1487 mock := &MockLeaseVerifier{ctrl: ctrl} 1488 mock.recorder = &MockLeaseVerifierMockRecorder{mock} 1489 return mock 1490 } 1491 1492 // EXPECT returns an object that allows the caller to indicate expected use. 1493 func (m *MockLeaseVerifier) EXPECT() *MockLeaseVerifierMockRecorder { 1494 return m.recorder 1495 } 1496 1497 // LatestState mocks base method. 1498 func (m *MockLeaseVerifier) LatestState(descriptor LeaseDescriptor) (LeaseState, error) { 1499 m.ctrl.T.Helper() 1500 ret := m.ctrl.Call(m, "LatestState", descriptor) 1501 ret0, _ := ret[0].(LeaseState) 1502 ret1, _ := ret[1].(error) 1503 return ret0, ret1 1504 } 1505 1506 // LatestState indicates an expected call of LatestState. 1507 func (mr *MockLeaseVerifierMockRecorder) LatestState(descriptor interface{}) *gomock.Call { 1508 mr.mock.ctrl.T.Helper() 1509 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LatestState", reflect.TypeOf((*MockLeaseVerifier)(nil).LatestState), descriptor) 1510 } 1511 1512 // VerifyLease mocks base method. 1513 func (m *MockLeaseVerifier) VerifyLease(descriptor LeaseDescriptor, state LeaseState) error { 1514 m.ctrl.T.Helper() 1515 ret := m.ctrl.Call(m, "VerifyLease", descriptor, state) 1516 ret0, _ := ret[0].(error) 1517 return ret0 1518 } 1519 1520 // VerifyLease indicates an expected call of VerifyLease. 1521 func (mr *MockLeaseVerifierMockRecorder) VerifyLease(descriptor, state interface{}) *gomock.Call { 1522 mr.mock.ctrl.T.Helper() 1523 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyLease", reflect.TypeOf((*MockLeaseVerifier)(nil).VerifyLease), descriptor, state) 1524 } 1525 1526 // MockLeaser is a mock of Leaser interface. 1527 type MockLeaser struct { 1528 ctrl *gomock.Controller 1529 recorder *MockLeaserMockRecorder 1530 } 1531 1532 // MockLeaserMockRecorder is the mock recorder for MockLeaser. 1533 type MockLeaserMockRecorder struct { 1534 mock *MockLeaser 1535 } 1536 1537 // NewMockLeaser creates a new mock instance. 1538 func NewMockLeaser(ctrl *gomock.Controller) *MockLeaser { 1539 mock := &MockLeaser{ctrl: ctrl} 1540 mock.recorder = &MockLeaserMockRecorder{mock} 1541 return mock 1542 } 1543 1544 // EXPECT returns an object that allows the caller to indicate expected use. 1545 func (m *MockLeaser) EXPECT() *MockLeaserMockRecorder { 1546 return m.recorder 1547 } 1548 1549 // UpdateOpenLease mocks base method. 1550 func (m *MockLeaser) UpdateOpenLease(descriptor LeaseDescriptor, state LeaseState) (UpdateOpenLeaseResult, error) { 1551 m.ctrl.T.Helper() 1552 ret := m.ctrl.Call(m, "UpdateOpenLease", descriptor, state) 1553 ret0, _ := ret[0].(UpdateOpenLeaseResult) 1554 ret1, _ := ret[1].(error) 1555 return ret0, ret1 1556 } 1557 1558 // UpdateOpenLease indicates an expected call of UpdateOpenLease. 1559 func (mr *MockLeaserMockRecorder) UpdateOpenLease(descriptor, state interface{}) *gomock.Call { 1560 mr.mock.ctrl.T.Helper() 1561 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOpenLease", reflect.TypeOf((*MockLeaser)(nil).UpdateOpenLease), descriptor, state) 1562 } 1563 1564 // MockOptions is a mock of Options interface. 1565 type MockOptions struct { 1566 ctrl *gomock.Controller 1567 recorder *MockOptionsMockRecorder 1568 } 1569 1570 // MockOptionsMockRecorder is the mock recorder for MockOptions. 1571 type MockOptionsMockRecorder struct { 1572 mock *MockOptions 1573 } 1574 1575 // NewMockOptions creates a new mock instance. 1576 func NewMockOptions(ctrl *gomock.Controller) *MockOptions { 1577 mock := &MockOptions{ctrl: ctrl} 1578 mock.recorder = &MockOptionsMockRecorder{mock} 1579 return mock 1580 } 1581 1582 // EXPECT returns an object that allows the caller to indicate expected use. 1583 func (m *MockOptions) EXPECT() *MockOptionsMockRecorder { 1584 return m.recorder 1585 } 1586 1587 // BytesPool mocks base method. 1588 func (m *MockOptions) BytesPool() pool.CheckedBytesPool { 1589 m.ctrl.T.Helper() 1590 ret := m.ctrl.Call(m, "BytesPool") 1591 ret0, _ := ret[0].(pool.CheckedBytesPool) 1592 return ret0 1593 } 1594 1595 // BytesPool indicates an expected call of BytesPool. 1596 func (mr *MockOptionsMockRecorder) BytesPool() *gomock.Call { 1597 mr.mock.ctrl.T.Helper() 1598 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BytesPool", reflect.TypeOf((*MockOptions)(nil).BytesPool)) 1599 } 1600 1601 // ClockOptions mocks base method. 1602 func (m *MockOptions) ClockOptions() clock.Options { 1603 m.ctrl.T.Helper() 1604 ret := m.ctrl.Call(m, "ClockOptions") 1605 ret0, _ := ret[0].(clock.Options) 1606 return ret0 1607 } 1608 1609 // ClockOptions indicates an expected call of ClockOptions. 1610 func (mr *MockOptionsMockRecorder) ClockOptions() *gomock.Call { 1611 mr.mock.ctrl.T.Helper() 1612 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClockOptions", reflect.TypeOf((*MockOptions)(nil).ClockOptions)) 1613 } 1614 1615 // CloseContextWorkers mocks base method. 1616 func (m *MockOptions) CloseContextWorkers() sync.WorkerPool { 1617 m.ctrl.T.Helper() 1618 ret := m.ctrl.Call(m, "CloseContextWorkers") 1619 ret0, _ := ret[0].(sync.WorkerPool) 1620 return ret0 1621 } 1622 1623 // CloseContextWorkers indicates an expected call of CloseContextWorkers. 1624 func (mr *MockOptionsMockRecorder) CloseContextWorkers() *gomock.Call { 1625 mr.mock.ctrl.T.Helper() 1626 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseContextWorkers", reflect.TypeOf((*MockOptions)(nil).CloseContextWorkers)) 1627 } 1628 1629 // ContextPool mocks base method. 1630 func (m *MockOptions) ContextPool() context.Pool { 1631 m.ctrl.T.Helper() 1632 ret := m.ctrl.Call(m, "ContextPool") 1633 ret0, _ := ret[0].(context.Pool) 1634 return ret0 1635 } 1636 1637 // ContextPool indicates an expected call of ContextPool. 1638 func (mr *MockOptionsMockRecorder) ContextPool() *gomock.Call { 1639 mr.mock.ctrl.T.Helper() 1640 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContextPool", reflect.TypeOf((*MockOptions)(nil).ContextPool)) 1641 } 1642 1643 // DatabaseBlockAllocSize mocks base method. 1644 func (m *MockOptions) DatabaseBlockAllocSize() int { 1645 m.ctrl.T.Helper() 1646 ret := m.ctrl.Call(m, "DatabaseBlockAllocSize") 1647 ret0, _ := ret[0].(int) 1648 return ret0 1649 } 1650 1651 // DatabaseBlockAllocSize indicates an expected call of DatabaseBlockAllocSize. 1652 func (mr *MockOptionsMockRecorder) DatabaseBlockAllocSize() *gomock.Call { 1653 mr.mock.ctrl.T.Helper() 1654 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DatabaseBlockAllocSize", reflect.TypeOf((*MockOptions)(nil).DatabaseBlockAllocSize)) 1655 } 1656 1657 // DatabaseBlockPool mocks base method. 1658 func (m *MockOptions) DatabaseBlockPool() DatabaseBlockPool { 1659 m.ctrl.T.Helper() 1660 ret := m.ctrl.Call(m, "DatabaseBlockPool") 1661 ret0, _ := ret[0].(DatabaseBlockPool) 1662 return ret0 1663 } 1664 1665 // DatabaseBlockPool indicates an expected call of DatabaseBlockPool. 1666 func (mr *MockOptionsMockRecorder) DatabaseBlockPool() *gomock.Call { 1667 mr.mock.ctrl.T.Helper() 1668 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DatabaseBlockPool", reflect.TypeOf((*MockOptions)(nil).DatabaseBlockPool)) 1669 } 1670 1671 // EncoderPool mocks base method. 1672 func (m *MockOptions) EncoderPool() encoding.EncoderPool { 1673 m.ctrl.T.Helper() 1674 ret := m.ctrl.Call(m, "EncoderPool") 1675 ret0, _ := ret[0].(encoding.EncoderPool) 1676 return ret0 1677 } 1678 1679 // EncoderPool indicates an expected call of EncoderPool. 1680 func (mr *MockOptionsMockRecorder) EncoderPool() *gomock.Call { 1681 mr.mock.ctrl.T.Helper() 1682 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EncoderPool", reflect.TypeOf((*MockOptions)(nil).EncoderPool)) 1683 } 1684 1685 // MultiReaderIteratorPool mocks base method. 1686 func (m *MockOptions) MultiReaderIteratorPool() encoding.MultiReaderIteratorPool { 1687 m.ctrl.T.Helper() 1688 ret := m.ctrl.Call(m, "MultiReaderIteratorPool") 1689 ret0, _ := ret[0].(encoding.MultiReaderIteratorPool) 1690 return ret0 1691 } 1692 1693 // MultiReaderIteratorPool indicates an expected call of MultiReaderIteratorPool. 1694 func (mr *MockOptionsMockRecorder) MultiReaderIteratorPool() *gomock.Call { 1695 mr.mock.ctrl.T.Helper() 1696 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MultiReaderIteratorPool", reflect.TypeOf((*MockOptions)(nil).MultiReaderIteratorPool)) 1697 } 1698 1699 // ReaderIteratorPool mocks base method. 1700 func (m *MockOptions) ReaderIteratorPool() encoding.ReaderIteratorPool { 1701 m.ctrl.T.Helper() 1702 ret := m.ctrl.Call(m, "ReaderIteratorPool") 1703 ret0, _ := ret[0].(encoding.ReaderIteratorPool) 1704 return ret0 1705 } 1706 1707 // ReaderIteratorPool indicates an expected call of ReaderIteratorPool. 1708 func (mr *MockOptionsMockRecorder) ReaderIteratorPool() *gomock.Call { 1709 mr.mock.ctrl.T.Helper() 1710 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReaderIteratorPool", reflect.TypeOf((*MockOptions)(nil).ReaderIteratorPool)) 1711 } 1712 1713 // SegmentReaderPool mocks base method. 1714 func (m *MockOptions) SegmentReaderPool() xio.SegmentReaderPool { 1715 m.ctrl.T.Helper() 1716 ret := m.ctrl.Call(m, "SegmentReaderPool") 1717 ret0, _ := ret[0].(xio.SegmentReaderPool) 1718 return ret0 1719 } 1720 1721 // SegmentReaderPool indicates an expected call of SegmentReaderPool. 1722 func (mr *MockOptionsMockRecorder) SegmentReaderPool() *gomock.Call { 1723 mr.mock.ctrl.T.Helper() 1724 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SegmentReaderPool", reflect.TypeOf((*MockOptions)(nil).SegmentReaderPool)) 1725 } 1726 1727 // SetBytesPool mocks base method. 1728 func (m *MockOptions) SetBytesPool(value pool.CheckedBytesPool) Options { 1729 m.ctrl.T.Helper() 1730 ret := m.ctrl.Call(m, "SetBytesPool", value) 1731 ret0, _ := ret[0].(Options) 1732 return ret0 1733 } 1734 1735 // SetBytesPool indicates an expected call of SetBytesPool. 1736 func (mr *MockOptionsMockRecorder) SetBytesPool(value interface{}) *gomock.Call { 1737 mr.mock.ctrl.T.Helper() 1738 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBytesPool", reflect.TypeOf((*MockOptions)(nil).SetBytesPool), value) 1739 } 1740 1741 // SetClockOptions mocks base method. 1742 func (m *MockOptions) SetClockOptions(value clock.Options) Options { 1743 m.ctrl.T.Helper() 1744 ret := m.ctrl.Call(m, "SetClockOptions", value) 1745 ret0, _ := ret[0].(Options) 1746 return ret0 1747 } 1748 1749 // SetClockOptions indicates an expected call of SetClockOptions. 1750 func (mr *MockOptionsMockRecorder) SetClockOptions(value interface{}) *gomock.Call { 1751 mr.mock.ctrl.T.Helper() 1752 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetClockOptions", reflect.TypeOf((*MockOptions)(nil).SetClockOptions), value) 1753 } 1754 1755 // SetCloseContextWorkers mocks base method. 1756 func (m *MockOptions) SetCloseContextWorkers(value sync.WorkerPool) Options { 1757 m.ctrl.T.Helper() 1758 ret := m.ctrl.Call(m, "SetCloseContextWorkers", value) 1759 ret0, _ := ret[0].(Options) 1760 return ret0 1761 } 1762 1763 // SetCloseContextWorkers indicates an expected call of SetCloseContextWorkers. 1764 func (mr *MockOptionsMockRecorder) SetCloseContextWorkers(value interface{}) *gomock.Call { 1765 mr.mock.ctrl.T.Helper() 1766 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCloseContextWorkers", reflect.TypeOf((*MockOptions)(nil).SetCloseContextWorkers), value) 1767 } 1768 1769 // SetContextPool mocks base method. 1770 func (m *MockOptions) SetContextPool(value context.Pool) Options { 1771 m.ctrl.T.Helper() 1772 ret := m.ctrl.Call(m, "SetContextPool", value) 1773 ret0, _ := ret[0].(Options) 1774 return ret0 1775 } 1776 1777 // SetContextPool indicates an expected call of SetContextPool. 1778 func (mr *MockOptionsMockRecorder) SetContextPool(value interface{}) *gomock.Call { 1779 mr.mock.ctrl.T.Helper() 1780 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetContextPool", reflect.TypeOf((*MockOptions)(nil).SetContextPool), value) 1781 } 1782 1783 // SetDatabaseBlockAllocSize mocks base method. 1784 func (m *MockOptions) SetDatabaseBlockAllocSize(value int) Options { 1785 m.ctrl.T.Helper() 1786 ret := m.ctrl.Call(m, "SetDatabaseBlockAllocSize", value) 1787 ret0, _ := ret[0].(Options) 1788 return ret0 1789 } 1790 1791 // SetDatabaseBlockAllocSize indicates an expected call of SetDatabaseBlockAllocSize. 1792 func (mr *MockOptionsMockRecorder) SetDatabaseBlockAllocSize(value interface{}) *gomock.Call { 1793 mr.mock.ctrl.T.Helper() 1794 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDatabaseBlockAllocSize", reflect.TypeOf((*MockOptions)(nil).SetDatabaseBlockAllocSize), value) 1795 } 1796 1797 // SetDatabaseBlockPool mocks base method. 1798 func (m *MockOptions) SetDatabaseBlockPool(value DatabaseBlockPool) Options { 1799 m.ctrl.T.Helper() 1800 ret := m.ctrl.Call(m, "SetDatabaseBlockPool", value) 1801 ret0, _ := ret[0].(Options) 1802 return ret0 1803 } 1804 1805 // SetDatabaseBlockPool indicates an expected call of SetDatabaseBlockPool. 1806 func (mr *MockOptionsMockRecorder) SetDatabaseBlockPool(value interface{}) *gomock.Call { 1807 mr.mock.ctrl.T.Helper() 1808 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDatabaseBlockPool", reflect.TypeOf((*MockOptions)(nil).SetDatabaseBlockPool), value) 1809 } 1810 1811 // SetEncoderPool mocks base method. 1812 func (m *MockOptions) SetEncoderPool(value encoding.EncoderPool) Options { 1813 m.ctrl.T.Helper() 1814 ret := m.ctrl.Call(m, "SetEncoderPool", value) 1815 ret0, _ := ret[0].(Options) 1816 return ret0 1817 } 1818 1819 // SetEncoderPool indicates an expected call of SetEncoderPool. 1820 func (mr *MockOptionsMockRecorder) SetEncoderPool(value interface{}) *gomock.Call { 1821 mr.mock.ctrl.T.Helper() 1822 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEncoderPool", reflect.TypeOf((*MockOptions)(nil).SetEncoderPool), value) 1823 } 1824 1825 // SetMultiReaderIteratorPool mocks base method. 1826 func (m *MockOptions) SetMultiReaderIteratorPool(value encoding.MultiReaderIteratorPool) Options { 1827 m.ctrl.T.Helper() 1828 ret := m.ctrl.Call(m, "SetMultiReaderIteratorPool", value) 1829 ret0, _ := ret[0].(Options) 1830 return ret0 1831 } 1832 1833 // SetMultiReaderIteratorPool indicates an expected call of SetMultiReaderIteratorPool. 1834 func (mr *MockOptionsMockRecorder) SetMultiReaderIteratorPool(value interface{}) *gomock.Call { 1835 mr.mock.ctrl.T.Helper() 1836 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMultiReaderIteratorPool", reflect.TypeOf((*MockOptions)(nil).SetMultiReaderIteratorPool), value) 1837 } 1838 1839 // SetReaderIteratorPool mocks base method. 1840 func (m *MockOptions) SetReaderIteratorPool(value encoding.ReaderIteratorPool) Options { 1841 m.ctrl.T.Helper() 1842 ret := m.ctrl.Call(m, "SetReaderIteratorPool", value) 1843 ret0, _ := ret[0].(Options) 1844 return ret0 1845 } 1846 1847 // SetReaderIteratorPool indicates an expected call of SetReaderIteratorPool. 1848 func (mr *MockOptionsMockRecorder) SetReaderIteratorPool(value interface{}) *gomock.Call { 1849 mr.mock.ctrl.T.Helper() 1850 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetReaderIteratorPool", reflect.TypeOf((*MockOptions)(nil).SetReaderIteratorPool), value) 1851 } 1852 1853 // SetSegmentReaderPool mocks base method. 1854 func (m *MockOptions) SetSegmentReaderPool(value xio.SegmentReaderPool) Options { 1855 m.ctrl.T.Helper() 1856 ret := m.ctrl.Call(m, "SetSegmentReaderPool", value) 1857 ret0, _ := ret[0].(Options) 1858 return ret0 1859 } 1860 1861 // SetSegmentReaderPool indicates an expected call of SetSegmentReaderPool. 1862 func (mr *MockOptionsMockRecorder) SetSegmentReaderPool(value interface{}) *gomock.Call { 1863 mr.mock.ctrl.T.Helper() 1864 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSegmentReaderPool", reflect.TypeOf((*MockOptions)(nil).SetSegmentReaderPool), value) 1865 } 1866 1867 // SetWiredList mocks base method. 1868 func (m *MockOptions) SetWiredList(value *WiredList) Options { 1869 m.ctrl.T.Helper() 1870 ret := m.ctrl.Call(m, "SetWiredList", value) 1871 ret0, _ := ret[0].(Options) 1872 return ret0 1873 } 1874 1875 // SetWiredList indicates an expected call of SetWiredList. 1876 func (mr *MockOptionsMockRecorder) SetWiredList(value interface{}) *gomock.Call { 1877 mr.mock.ctrl.T.Helper() 1878 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWiredList", reflect.TypeOf((*MockOptions)(nil).SetWiredList), value) 1879 } 1880 1881 // WiredList mocks base method. 1882 func (m *MockOptions) WiredList() *WiredList { 1883 m.ctrl.T.Helper() 1884 ret := m.ctrl.Call(m, "WiredList") 1885 ret0, _ := ret[0].(*WiredList) 1886 return ret0 1887 } 1888 1889 // WiredList indicates an expected call of WiredList. 1890 func (mr *MockOptionsMockRecorder) WiredList() *gomock.Call { 1891 mr.mock.ctrl.T.Helper() 1892 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WiredList", reflect.TypeOf((*MockOptions)(nil).WiredList)) 1893 }