github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/dbnode/persist/fs/commitlog/commit_log_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: ../../persist/fs/commitlog/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 commitlog is a generated GoMock package. 25 package commitlog 26 27 import ( 28 "reflect" 29 "time" 30 31 "github.com/m3db/m3/src/dbnode/persist" 32 "github.com/m3db/m3/src/dbnode/persist/fs" 33 "github.com/m3db/m3/src/dbnode/ts" 34 "github.com/m3db/m3/src/dbnode/ts/writes" 35 "github.com/m3db/m3/src/x/clock" 36 "github.com/m3db/m3/src/x/context" 37 "github.com/m3db/m3/src/x/ident" 38 "github.com/m3db/m3/src/x/instrument" 39 "github.com/m3db/m3/src/x/pool" 40 time0 "github.com/m3db/m3/src/x/time" 41 42 "github.com/golang/mock/gomock" 43 ) 44 45 // MockCommitLog is a mock of CommitLog interface. 46 type MockCommitLog struct { 47 ctrl *gomock.Controller 48 recorder *MockCommitLogMockRecorder 49 } 50 51 // MockCommitLogMockRecorder is the mock recorder for MockCommitLog. 52 type MockCommitLogMockRecorder struct { 53 mock *MockCommitLog 54 } 55 56 // NewMockCommitLog creates a new mock instance. 57 func NewMockCommitLog(ctrl *gomock.Controller) *MockCommitLog { 58 mock := &MockCommitLog{ctrl: ctrl} 59 mock.recorder = &MockCommitLogMockRecorder{mock} 60 return mock 61 } 62 63 // EXPECT returns an object that allows the caller to indicate expected use. 64 func (m *MockCommitLog) EXPECT() *MockCommitLogMockRecorder { 65 return m.recorder 66 } 67 68 // ActiveLogs mocks base method. 69 func (m *MockCommitLog) ActiveLogs() (persist.CommitLogFiles, error) { 70 m.ctrl.T.Helper() 71 ret := m.ctrl.Call(m, "ActiveLogs") 72 ret0, _ := ret[0].(persist.CommitLogFiles) 73 ret1, _ := ret[1].(error) 74 return ret0, ret1 75 } 76 77 // ActiveLogs indicates an expected call of ActiveLogs. 78 func (mr *MockCommitLogMockRecorder) ActiveLogs() *gomock.Call { 79 mr.mock.ctrl.T.Helper() 80 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActiveLogs", reflect.TypeOf((*MockCommitLog)(nil).ActiveLogs)) 81 } 82 83 // Close mocks base method. 84 func (m *MockCommitLog) Close() error { 85 m.ctrl.T.Helper() 86 ret := m.ctrl.Call(m, "Close") 87 ret0, _ := ret[0].(error) 88 return ret0 89 } 90 91 // Close indicates an expected call of Close. 92 func (mr *MockCommitLogMockRecorder) Close() *gomock.Call { 93 mr.mock.ctrl.T.Helper() 94 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockCommitLog)(nil).Close)) 95 } 96 97 // Open mocks base method. 98 func (m *MockCommitLog) Open() error { 99 m.ctrl.T.Helper() 100 ret := m.ctrl.Call(m, "Open") 101 ret0, _ := ret[0].(error) 102 return ret0 103 } 104 105 // Open indicates an expected call of Open. 106 func (mr *MockCommitLogMockRecorder) Open() *gomock.Call { 107 mr.mock.ctrl.T.Helper() 108 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Open", reflect.TypeOf((*MockCommitLog)(nil).Open)) 109 } 110 111 // QueueLength mocks base method. 112 func (m *MockCommitLog) QueueLength() int64 { 113 m.ctrl.T.Helper() 114 ret := m.ctrl.Call(m, "QueueLength") 115 ret0, _ := ret[0].(int64) 116 return ret0 117 } 118 119 // QueueLength indicates an expected call of QueueLength. 120 func (mr *MockCommitLogMockRecorder) QueueLength() *gomock.Call { 121 mr.mock.ctrl.T.Helper() 122 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueLength", reflect.TypeOf((*MockCommitLog)(nil).QueueLength)) 123 } 124 125 // RotateLogs mocks base method. 126 func (m *MockCommitLog) RotateLogs() (persist.CommitLogFile, error) { 127 m.ctrl.T.Helper() 128 ret := m.ctrl.Call(m, "RotateLogs") 129 ret0, _ := ret[0].(persist.CommitLogFile) 130 ret1, _ := ret[1].(error) 131 return ret0, ret1 132 } 133 134 // RotateLogs indicates an expected call of RotateLogs. 135 func (mr *MockCommitLogMockRecorder) RotateLogs() *gomock.Call { 136 mr.mock.ctrl.T.Helper() 137 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RotateLogs", reflect.TypeOf((*MockCommitLog)(nil).RotateLogs)) 138 } 139 140 // Write mocks base method. 141 func (m *MockCommitLog) Write(ctx context.Context, series ts.Series, datapoint ts.Datapoint, unit time0.Unit, annotation ts.Annotation) error { 142 m.ctrl.T.Helper() 143 ret := m.ctrl.Call(m, "Write", ctx, series, datapoint, unit, annotation) 144 ret0, _ := ret[0].(error) 145 return ret0 146 } 147 148 // Write indicates an expected call of Write. 149 func (mr *MockCommitLogMockRecorder) Write(ctx, series, datapoint, unit, annotation interface{}) *gomock.Call { 150 mr.mock.ctrl.T.Helper() 151 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockCommitLog)(nil).Write), ctx, series, datapoint, unit, annotation) 152 } 153 154 // WriteBatch mocks base method. 155 func (m *MockCommitLog) WriteBatch(ctx context.Context, writes writes.WriteBatch) error { 156 m.ctrl.T.Helper() 157 ret := m.ctrl.Call(m, "WriteBatch", ctx, writes) 158 ret0, _ := ret[0].(error) 159 return ret0 160 } 161 162 // WriteBatch indicates an expected call of WriteBatch. 163 func (mr *MockCommitLogMockRecorder) WriteBatch(ctx, writes interface{}) *gomock.Call { 164 mr.mock.ctrl.T.Helper() 165 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteBatch", reflect.TypeOf((*MockCommitLog)(nil).WriteBatch), ctx, writes) 166 } 167 168 // MockIterator is a mock of Iterator interface. 169 type MockIterator struct { 170 ctrl *gomock.Controller 171 recorder *MockIteratorMockRecorder 172 } 173 174 // MockIteratorMockRecorder is the mock recorder for MockIterator. 175 type MockIteratorMockRecorder struct { 176 mock *MockIterator 177 } 178 179 // NewMockIterator creates a new mock instance. 180 func NewMockIterator(ctrl *gomock.Controller) *MockIterator { 181 mock := &MockIterator{ctrl: ctrl} 182 mock.recorder = &MockIteratorMockRecorder{mock} 183 return mock 184 } 185 186 // EXPECT returns an object that allows the caller to indicate expected use. 187 func (m *MockIterator) EXPECT() *MockIteratorMockRecorder { 188 return m.recorder 189 } 190 191 // Close mocks base method. 192 func (m *MockIterator) Close() { 193 m.ctrl.T.Helper() 194 m.ctrl.Call(m, "Close") 195 } 196 197 // Close indicates an expected call of Close. 198 func (mr *MockIteratorMockRecorder) Close() *gomock.Call { 199 mr.mock.ctrl.T.Helper() 200 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockIterator)(nil).Close)) 201 } 202 203 // Current mocks base method. 204 func (m *MockIterator) Current() LogEntry { 205 m.ctrl.T.Helper() 206 ret := m.ctrl.Call(m, "Current") 207 ret0, _ := ret[0].(LogEntry) 208 return ret0 209 } 210 211 // Current indicates an expected call of Current. 212 func (mr *MockIteratorMockRecorder) Current() *gomock.Call { 213 mr.mock.ctrl.T.Helper() 214 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Current", reflect.TypeOf((*MockIterator)(nil).Current)) 215 } 216 217 // Err mocks base method. 218 func (m *MockIterator) Err() error { 219 m.ctrl.T.Helper() 220 ret := m.ctrl.Call(m, "Err") 221 ret0, _ := ret[0].(error) 222 return ret0 223 } 224 225 // Err indicates an expected call of Err. 226 func (mr *MockIteratorMockRecorder) Err() *gomock.Call { 227 mr.mock.ctrl.T.Helper() 228 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockIterator)(nil).Err)) 229 } 230 231 // Next mocks base method. 232 func (m *MockIterator) Next() bool { 233 m.ctrl.T.Helper() 234 ret := m.ctrl.Call(m, "Next") 235 ret0, _ := ret[0].(bool) 236 return ret0 237 } 238 239 // Next indicates an expected call of Next. 240 func (mr *MockIteratorMockRecorder) Next() *gomock.Call { 241 mr.mock.ctrl.T.Helper() 242 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockIterator)(nil).Next)) 243 } 244 245 // MockOptions is a mock of Options interface. 246 type MockOptions struct { 247 ctrl *gomock.Controller 248 recorder *MockOptionsMockRecorder 249 } 250 251 // MockOptionsMockRecorder is the mock recorder for MockOptions. 252 type MockOptionsMockRecorder struct { 253 mock *MockOptions 254 } 255 256 // NewMockOptions creates a new mock instance. 257 func NewMockOptions(ctrl *gomock.Controller) *MockOptions { 258 mock := &MockOptions{ctrl: ctrl} 259 mock.recorder = &MockOptionsMockRecorder{mock} 260 return mock 261 } 262 263 // EXPECT returns an object that allows the caller to indicate expected use. 264 func (m *MockOptions) EXPECT() *MockOptionsMockRecorder { 265 return m.recorder 266 } 267 268 // BacklogQueueChannelSize mocks base method. 269 func (m *MockOptions) BacklogQueueChannelSize() int { 270 m.ctrl.T.Helper() 271 ret := m.ctrl.Call(m, "BacklogQueueChannelSize") 272 ret0, _ := ret[0].(int) 273 return ret0 274 } 275 276 // BacklogQueueChannelSize indicates an expected call of BacklogQueueChannelSize. 277 func (mr *MockOptionsMockRecorder) BacklogQueueChannelSize() *gomock.Call { 278 mr.mock.ctrl.T.Helper() 279 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BacklogQueueChannelSize", reflect.TypeOf((*MockOptions)(nil).BacklogQueueChannelSize)) 280 } 281 282 // BacklogQueueSize mocks base method. 283 func (m *MockOptions) BacklogQueueSize() int { 284 m.ctrl.T.Helper() 285 ret := m.ctrl.Call(m, "BacklogQueueSize") 286 ret0, _ := ret[0].(int) 287 return ret0 288 } 289 290 // BacklogQueueSize indicates an expected call of BacklogQueueSize. 291 func (mr *MockOptionsMockRecorder) BacklogQueueSize() *gomock.Call { 292 mr.mock.ctrl.T.Helper() 293 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BacklogQueueSize", reflect.TypeOf((*MockOptions)(nil).BacklogQueueSize)) 294 } 295 296 // BlockSize mocks base method. 297 func (m *MockOptions) BlockSize() time.Duration { 298 m.ctrl.T.Helper() 299 ret := m.ctrl.Call(m, "BlockSize") 300 ret0, _ := ret[0].(time.Duration) 301 return ret0 302 } 303 304 // BlockSize indicates an expected call of BlockSize. 305 func (mr *MockOptionsMockRecorder) BlockSize() *gomock.Call { 306 mr.mock.ctrl.T.Helper() 307 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockSize", reflect.TypeOf((*MockOptions)(nil).BlockSize)) 308 } 309 310 // BytesPool mocks base method. 311 func (m *MockOptions) BytesPool() pool.CheckedBytesPool { 312 m.ctrl.T.Helper() 313 ret := m.ctrl.Call(m, "BytesPool") 314 ret0, _ := ret[0].(pool.CheckedBytesPool) 315 return ret0 316 } 317 318 // BytesPool indicates an expected call of BytesPool. 319 func (mr *MockOptionsMockRecorder) BytesPool() *gomock.Call { 320 mr.mock.ctrl.T.Helper() 321 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BytesPool", reflect.TypeOf((*MockOptions)(nil).BytesPool)) 322 } 323 324 // ClockOptions mocks base method. 325 func (m *MockOptions) ClockOptions() clock.Options { 326 m.ctrl.T.Helper() 327 ret := m.ctrl.Call(m, "ClockOptions") 328 ret0, _ := ret[0].(clock.Options) 329 return ret0 330 } 331 332 // ClockOptions indicates an expected call of ClockOptions. 333 func (mr *MockOptionsMockRecorder) ClockOptions() *gomock.Call { 334 mr.mock.ctrl.T.Helper() 335 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClockOptions", reflect.TypeOf((*MockOptions)(nil).ClockOptions)) 336 } 337 338 // FailureCallback mocks base method. 339 func (m *MockOptions) FailureCallback() FailureCallback { 340 m.ctrl.T.Helper() 341 ret := m.ctrl.Call(m, "FailureCallback") 342 ret0, _ := ret[0].(FailureCallback) 343 return ret0 344 } 345 346 // FailureCallback indicates an expected call of FailureCallback. 347 func (mr *MockOptionsMockRecorder) FailureCallback() *gomock.Call { 348 mr.mock.ctrl.T.Helper() 349 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FailureCallback", reflect.TypeOf((*MockOptions)(nil).FailureCallback)) 350 } 351 352 // FailureStrategy mocks base method. 353 func (m *MockOptions) FailureStrategy() FailureStrategy { 354 m.ctrl.T.Helper() 355 ret := m.ctrl.Call(m, "FailureStrategy") 356 ret0, _ := ret[0].(FailureStrategy) 357 return ret0 358 } 359 360 // FailureStrategy indicates an expected call of FailureStrategy. 361 func (mr *MockOptionsMockRecorder) FailureStrategy() *gomock.Call { 362 mr.mock.ctrl.T.Helper() 363 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FailureStrategy", reflect.TypeOf((*MockOptions)(nil).FailureStrategy)) 364 } 365 366 // FilesystemOptions mocks base method. 367 func (m *MockOptions) FilesystemOptions() fs.Options { 368 m.ctrl.T.Helper() 369 ret := m.ctrl.Call(m, "FilesystemOptions") 370 ret0, _ := ret[0].(fs.Options) 371 return ret0 372 } 373 374 // FilesystemOptions indicates an expected call of FilesystemOptions. 375 func (mr *MockOptionsMockRecorder) FilesystemOptions() *gomock.Call { 376 mr.mock.ctrl.T.Helper() 377 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FilesystemOptions", reflect.TypeOf((*MockOptions)(nil).FilesystemOptions)) 378 } 379 380 // FlushInterval mocks base method. 381 func (m *MockOptions) FlushInterval() time.Duration { 382 m.ctrl.T.Helper() 383 ret := m.ctrl.Call(m, "FlushInterval") 384 ret0, _ := ret[0].(time.Duration) 385 return ret0 386 } 387 388 // FlushInterval indicates an expected call of FlushInterval. 389 func (mr *MockOptionsMockRecorder) FlushInterval() *gomock.Call { 390 mr.mock.ctrl.T.Helper() 391 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FlushInterval", reflect.TypeOf((*MockOptions)(nil).FlushInterval)) 392 } 393 394 // FlushSize mocks base method. 395 func (m *MockOptions) FlushSize() int { 396 m.ctrl.T.Helper() 397 ret := m.ctrl.Call(m, "FlushSize") 398 ret0, _ := ret[0].(int) 399 return ret0 400 } 401 402 // FlushSize indicates an expected call of FlushSize. 403 func (mr *MockOptionsMockRecorder) FlushSize() *gomock.Call { 404 mr.mock.ctrl.T.Helper() 405 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FlushSize", reflect.TypeOf((*MockOptions)(nil).FlushSize)) 406 } 407 408 // IdentifierPool mocks base method. 409 func (m *MockOptions) IdentifierPool() ident.Pool { 410 m.ctrl.T.Helper() 411 ret := m.ctrl.Call(m, "IdentifierPool") 412 ret0, _ := ret[0].(ident.Pool) 413 return ret0 414 } 415 416 // IdentifierPool indicates an expected call of IdentifierPool. 417 func (mr *MockOptionsMockRecorder) IdentifierPool() *gomock.Call { 418 mr.mock.ctrl.T.Helper() 419 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IdentifierPool", reflect.TypeOf((*MockOptions)(nil).IdentifierPool)) 420 } 421 422 // InstrumentOptions mocks base method. 423 func (m *MockOptions) InstrumentOptions() instrument.Options { 424 m.ctrl.T.Helper() 425 ret := m.ctrl.Call(m, "InstrumentOptions") 426 ret0, _ := ret[0].(instrument.Options) 427 return ret0 428 } 429 430 // InstrumentOptions indicates an expected call of InstrumentOptions. 431 func (mr *MockOptionsMockRecorder) InstrumentOptions() *gomock.Call { 432 mr.mock.ctrl.T.Helper() 433 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InstrumentOptions", reflect.TypeOf((*MockOptions)(nil).InstrumentOptions)) 434 } 435 436 // ReadConcurrency mocks base method. 437 func (m *MockOptions) ReadConcurrency() int { 438 m.ctrl.T.Helper() 439 ret := m.ctrl.Call(m, "ReadConcurrency") 440 ret0, _ := ret[0].(int) 441 return ret0 442 } 443 444 // ReadConcurrency indicates an expected call of ReadConcurrency. 445 func (mr *MockOptionsMockRecorder) ReadConcurrency() *gomock.Call { 446 mr.mock.ctrl.T.Helper() 447 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadConcurrency", reflect.TypeOf((*MockOptions)(nil).ReadConcurrency)) 448 } 449 450 // SetBacklogQueueChannelSize mocks base method. 451 func (m *MockOptions) SetBacklogQueueChannelSize(value int) Options { 452 m.ctrl.T.Helper() 453 ret := m.ctrl.Call(m, "SetBacklogQueueChannelSize", value) 454 ret0, _ := ret[0].(Options) 455 return ret0 456 } 457 458 // SetBacklogQueueChannelSize indicates an expected call of SetBacklogQueueChannelSize. 459 func (mr *MockOptionsMockRecorder) SetBacklogQueueChannelSize(value interface{}) *gomock.Call { 460 mr.mock.ctrl.T.Helper() 461 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBacklogQueueChannelSize", reflect.TypeOf((*MockOptions)(nil).SetBacklogQueueChannelSize), value) 462 } 463 464 // SetBacklogQueueSize mocks base method. 465 func (m *MockOptions) SetBacklogQueueSize(value int) Options { 466 m.ctrl.T.Helper() 467 ret := m.ctrl.Call(m, "SetBacklogQueueSize", value) 468 ret0, _ := ret[0].(Options) 469 return ret0 470 } 471 472 // SetBacklogQueueSize indicates an expected call of SetBacklogQueueSize. 473 func (mr *MockOptionsMockRecorder) SetBacklogQueueSize(value interface{}) *gomock.Call { 474 mr.mock.ctrl.T.Helper() 475 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBacklogQueueSize", reflect.TypeOf((*MockOptions)(nil).SetBacklogQueueSize), value) 476 } 477 478 // SetBlockSize mocks base method. 479 func (m *MockOptions) SetBlockSize(value time.Duration) Options { 480 m.ctrl.T.Helper() 481 ret := m.ctrl.Call(m, "SetBlockSize", value) 482 ret0, _ := ret[0].(Options) 483 return ret0 484 } 485 486 // SetBlockSize indicates an expected call of SetBlockSize. 487 func (mr *MockOptionsMockRecorder) SetBlockSize(value interface{}) *gomock.Call { 488 mr.mock.ctrl.T.Helper() 489 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBlockSize", reflect.TypeOf((*MockOptions)(nil).SetBlockSize), value) 490 } 491 492 // SetBytesPool mocks base method. 493 func (m *MockOptions) SetBytesPool(value pool.CheckedBytesPool) Options { 494 m.ctrl.T.Helper() 495 ret := m.ctrl.Call(m, "SetBytesPool", value) 496 ret0, _ := ret[0].(Options) 497 return ret0 498 } 499 500 // SetBytesPool indicates an expected call of SetBytesPool. 501 func (mr *MockOptionsMockRecorder) SetBytesPool(value interface{}) *gomock.Call { 502 mr.mock.ctrl.T.Helper() 503 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBytesPool", reflect.TypeOf((*MockOptions)(nil).SetBytesPool), value) 504 } 505 506 // SetClockOptions mocks base method. 507 func (m *MockOptions) SetClockOptions(value clock.Options) Options { 508 m.ctrl.T.Helper() 509 ret := m.ctrl.Call(m, "SetClockOptions", value) 510 ret0, _ := ret[0].(Options) 511 return ret0 512 } 513 514 // SetClockOptions indicates an expected call of SetClockOptions. 515 func (mr *MockOptionsMockRecorder) SetClockOptions(value interface{}) *gomock.Call { 516 mr.mock.ctrl.T.Helper() 517 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetClockOptions", reflect.TypeOf((*MockOptions)(nil).SetClockOptions), value) 518 } 519 520 // SetFailureCallback mocks base method. 521 func (m *MockOptions) SetFailureCallback(value FailureCallback) Options { 522 m.ctrl.T.Helper() 523 ret := m.ctrl.Call(m, "SetFailureCallback", value) 524 ret0, _ := ret[0].(Options) 525 return ret0 526 } 527 528 // SetFailureCallback indicates an expected call of SetFailureCallback. 529 func (mr *MockOptionsMockRecorder) SetFailureCallback(value interface{}) *gomock.Call { 530 mr.mock.ctrl.T.Helper() 531 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFailureCallback", reflect.TypeOf((*MockOptions)(nil).SetFailureCallback), value) 532 } 533 534 // SetFailureStrategy mocks base method. 535 func (m *MockOptions) SetFailureStrategy(value FailureStrategy) Options { 536 m.ctrl.T.Helper() 537 ret := m.ctrl.Call(m, "SetFailureStrategy", value) 538 ret0, _ := ret[0].(Options) 539 return ret0 540 } 541 542 // SetFailureStrategy indicates an expected call of SetFailureStrategy. 543 func (mr *MockOptionsMockRecorder) SetFailureStrategy(value interface{}) *gomock.Call { 544 mr.mock.ctrl.T.Helper() 545 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFailureStrategy", reflect.TypeOf((*MockOptions)(nil).SetFailureStrategy), value) 546 } 547 548 // SetFilesystemOptions mocks base method. 549 func (m *MockOptions) SetFilesystemOptions(value fs.Options) Options { 550 m.ctrl.T.Helper() 551 ret := m.ctrl.Call(m, "SetFilesystemOptions", value) 552 ret0, _ := ret[0].(Options) 553 return ret0 554 } 555 556 // SetFilesystemOptions indicates an expected call of SetFilesystemOptions. 557 func (mr *MockOptionsMockRecorder) SetFilesystemOptions(value interface{}) *gomock.Call { 558 mr.mock.ctrl.T.Helper() 559 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFilesystemOptions", reflect.TypeOf((*MockOptions)(nil).SetFilesystemOptions), value) 560 } 561 562 // SetFlushInterval mocks base method. 563 func (m *MockOptions) SetFlushInterval(value time.Duration) Options { 564 m.ctrl.T.Helper() 565 ret := m.ctrl.Call(m, "SetFlushInterval", value) 566 ret0, _ := ret[0].(Options) 567 return ret0 568 } 569 570 // SetFlushInterval indicates an expected call of SetFlushInterval. 571 func (mr *MockOptionsMockRecorder) SetFlushInterval(value interface{}) *gomock.Call { 572 mr.mock.ctrl.T.Helper() 573 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFlushInterval", reflect.TypeOf((*MockOptions)(nil).SetFlushInterval), value) 574 } 575 576 // SetFlushSize mocks base method. 577 func (m *MockOptions) SetFlushSize(value int) Options { 578 m.ctrl.T.Helper() 579 ret := m.ctrl.Call(m, "SetFlushSize", value) 580 ret0, _ := ret[0].(Options) 581 return ret0 582 } 583 584 // SetFlushSize indicates an expected call of SetFlushSize. 585 func (mr *MockOptionsMockRecorder) SetFlushSize(value interface{}) *gomock.Call { 586 mr.mock.ctrl.T.Helper() 587 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFlushSize", reflect.TypeOf((*MockOptions)(nil).SetFlushSize), value) 588 } 589 590 // SetIdentifierPool mocks base method. 591 func (m *MockOptions) SetIdentifierPool(value ident.Pool) Options { 592 m.ctrl.T.Helper() 593 ret := m.ctrl.Call(m, "SetIdentifierPool", value) 594 ret0, _ := ret[0].(Options) 595 return ret0 596 } 597 598 // SetIdentifierPool indicates an expected call of SetIdentifierPool. 599 func (mr *MockOptionsMockRecorder) SetIdentifierPool(value interface{}) *gomock.Call { 600 mr.mock.ctrl.T.Helper() 601 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIdentifierPool", reflect.TypeOf((*MockOptions)(nil).SetIdentifierPool), value) 602 } 603 604 // SetInstrumentOptions mocks base method. 605 func (m *MockOptions) SetInstrumentOptions(value instrument.Options) Options { 606 m.ctrl.T.Helper() 607 ret := m.ctrl.Call(m, "SetInstrumentOptions", value) 608 ret0, _ := ret[0].(Options) 609 return ret0 610 } 611 612 // SetInstrumentOptions indicates an expected call of SetInstrumentOptions. 613 func (mr *MockOptionsMockRecorder) SetInstrumentOptions(value interface{}) *gomock.Call { 614 mr.mock.ctrl.T.Helper() 615 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInstrumentOptions", reflect.TypeOf((*MockOptions)(nil).SetInstrumentOptions), value) 616 } 617 618 // SetReadConcurrency mocks base method. 619 func (m *MockOptions) SetReadConcurrency(concurrency int) Options { 620 m.ctrl.T.Helper() 621 ret := m.ctrl.Call(m, "SetReadConcurrency", concurrency) 622 ret0, _ := ret[0].(Options) 623 return ret0 624 } 625 626 // SetReadConcurrency indicates an expected call of SetReadConcurrency. 627 func (mr *MockOptionsMockRecorder) SetReadConcurrency(concurrency interface{}) *gomock.Call { 628 mr.mock.ctrl.T.Helper() 629 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetReadConcurrency", reflect.TypeOf((*MockOptions)(nil).SetReadConcurrency), concurrency) 630 } 631 632 // SetStrategy mocks base method. 633 func (m *MockOptions) SetStrategy(value Strategy) Options { 634 m.ctrl.T.Helper() 635 ret := m.ctrl.Call(m, "SetStrategy", value) 636 ret0, _ := ret[0].(Options) 637 return ret0 638 } 639 640 // SetStrategy indicates an expected call of SetStrategy. 641 func (mr *MockOptionsMockRecorder) SetStrategy(value interface{}) *gomock.Call { 642 mr.mock.ctrl.T.Helper() 643 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetStrategy", reflect.TypeOf((*MockOptions)(nil).SetStrategy), value) 644 } 645 646 // Strategy mocks base method. 647 func (m *MockOptions) Strategy() Strategy { 648 m.ctrl.T.Helper() 649 ret := m.ctrl.Call(m, "Strategy") 650 ret0, _ := ret[0].(Strategy) 651 return ret0 652 } 653 654 // Strategy indicates an expected call of Strategy. 655 func (mr *MockOptionsMockRecorder) Strategy() *gomock.Call { 656 mr.mock.ctrl.T.Helper() 657 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Strategy", reflect.TypeOf((*MockOptions)(nil).Strategy)) 658 } 659 660 // Validate mocks base method. 661 func (m *MockOptions) Validate() error { 662 m.ctrl.T.Helper() 663 ret := m.ctrl.Call(m, "Validate") 664 ret0, _ := ret[0].(error) 665 return ret0 666 } 667 668 // Validate indicates an expected call of Validate. 669 func (mr *MockOptionsMockRecorder) Validate() *gomock.Call { 670 mr.mock.ctrl.T.Helper() 671 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockOptions)(nil).Validate)) 672 }