github.com/m3db/m3@v1.5.0/src/m3ninx/doc/doc_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/m3db/m3/src/m3ninx/doc/types.go 3 4 // Copyright (c) 2021 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 doc is a generated GoMock package. 25 package doc 26 27 import ( 28 "reflect" 29 30 "github.com/m3db/m3/src/x/resource" 31 "github.com/m3db/m3/src/x/time" 32 33 "github.com/golang/mock/gomock" 34 ) 35 36 // MockMetadataIterator is a mock of MetadataIterator interface. 37 type MockMetadataIterator struct { 38 ctrl *gomock.Controller 39 recorder *MockMetadataIteratorMockRecorder 40 } 41 42 // MockMetadataIteratorMockRecorder is the mock recorder for MockMetadataIterator. 43 type MockMetadataIteratorMockRecorder struct { 44 mock *MockMetadataIterator 45 } 46 47 // NewMockMetadataIterator creates a new mock instance. 48 func NewMockMetadataIterator(ctrl *gomock.Controller) *MockMetadataIterator { 49 mock := &MockMetadataIterator{ctrl: ctrl} 50 mock.recorder = &MockMetadataIteratorMockRecorder{mock} 51 return mock 52 } 53 54 // EXPECT returns an object that allows the caller to indicate expected use. 55 func (m *MockMetadataIterator) EXPECT() *MockMetadataIteratorMockRecorder { 56 return m.recorder 57 } 58 59 // Close mocks base method. 60 func (m *MockMetadataIterator) Close() error { 61 m.ctrl.T.Helper() 62 ret := m.ctrl.Call(m, "Close") 63 ret0, _ := ret[0].(error) 64 return ret0 65 } 66 67 // Close indicates an expected call of Close. 68 func (mr *MockMetadataIteratorMockRecorder) Close() *gomock.Call { 69 mr.mock.ctrl.T.Helper() 70 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockMetadataIterator)(nil).Close)) 71 } 72 73 // Current mocks base method. 74 func (m *MockMetadataIterator) Current() Metadata { 75 m.ctrl.T.Helper() 76 ret := m.ctrl.Call(m, "Current") 77 ret0, _ := ret[0].(Metadata) 78 return ret0 79 } 80 81 // Current indicates an expected call of Current. 82 func (mr *MockMetadataIteratorMockRecorder) Current() *gomock.Call { 83 mr.mock.ctrl.T.Helper() 84 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Current", reflect.TypeOf((*MockMetadataIterator)(nil).Current)) 85 } 86 87 // Err mocks base method. 88 func (m *MockMetadataIterator) Err() error { 89 m.ctrl.T.Helper() 90 ret := m.ctrl.Call(m, "Err") 91 ret0, _ := ret[0].(error) 92 return ret0 93 } 94 95 // Err indicates an expected call of Err. 96 func (mr *MockMetadataIteratorMockRecorder) Err() *gomock.Call { 97 mr.mock.ctrl.T.Helper() 98 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockMetadataIterator)(nil).Err)) 99 } 100 101 // Next mocks base method. 102 func (m *MockMetadataIterator) Next() bool { 103 m.ctrl.T.Helper() 104 ret := m.ctrl.Call(m, "Next") 105 ret0, _ := ret[0].(bool) 106 return ret0 107 } 108 109 // Next indicates an expected call of Next. 110 func (mr *MockMetadataIteratorMockRecorder) Next() *gomock.Call { 111 mr.mock.ctrl.T.Helper() 112 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockMetadataIterator)(nil).Next)) 113 } 114 115 // MockIterator is a mock of Iterator interface. 116 type MockIterator struct { 117 ctrl *gomock.Controller 118 recorder *MockIteratorMockRecorder 119 } 120 121 // MockIteratorMockRecorder is the mock recorder for MockIterator. 122 type MockIteratorMockRecorder struct { 123 mock *MockIterator 124 } 125 126 // NewMockIterator creates a new mock instance. 127 func NewMockIterator(ctrl *gomock.Controller) *MockIterator { 128 mock := &MockIterator{ctrl: ctrl} 129 mock.recorder = &MockIteratorMockRecorder{mock} 130 return mock 131 } 132 133 // EXPECT returns an object that allows the caller to indicate expected use. 134 func (m *MockIterator) EXPECT() *MockIteratorMockRecorder { 135 return m.recorder 136 } 137 138 // Close mocks base method. 139 func (m *MockIterator) Close() error { 140 m.ctrl.T.Helper() 141 ret := m.ctrl.Call(m, "Close") 142 ret0, _ := ret[0].(error) 143 return ret0 144 } 145 146 // Close indicates an expected call of Close. 147 func (mr *MockIteratorMockRecorder) Close() *gomock.Call { 148 mr.mock.ctrl.T.Helper() 149 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockIterator)(nil).Close)) 150 } 151 152 // Current mocks base method. 153 func (m *MockIterator) Current() Document { 154 m.ctrl.T.Helper() 155 ret := m.ctrl.Call(m, "Current") 156 ret0, _ := ret[0].(Document) 157 return ret0 158 } 159 160 // Current indicates an expected call of Current. 161 func (mr *MockIteratorMockRecorder) Current() *gomock.Call { 162 mr.mock.ctrl.T.Helper() 163 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Current", reflect.TypeOf((*MockIterator)(nil).Current)) 164 } 165 166 // Err mocks base method. 167 func (m *MockIterator) Err() error { 168 m.ctrl.T.Helper() 169 ret := m.ctrl.Call(m, "Err") 170 ret0, _ := ret[0].(error) 171 return ret0 172 } 173 174 // Err indicates an expected call of Err. 175 func (mr *MockIteratorMockRecorder) Err() *gomock.Call { 176 mr.mock.ctrl.T.Helper() 177 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockIterator)(nil).Err)) 178 } 179 180 // Next mocks base method. 181 func (m *MockIterator) Next() bool { 182 m.ctrl.T.Helper() 183 ret := m.ctrl.Call(m, "Next") 184 ret0, _ := ret[0].(bool) 185 return ret0 186 } 187 188 // Next indicates an expected call of Next. 189 func (mr *MockIteratorMockRecorder) Next() *gomock.Call { 190 mr.mock.ctrl.T.Helper() 191 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockIterator)(nil).Next)) 192 } 193 194 // MockQueryDocIterator is a mock of QueryDocIterator interface. 195 type MockQueryDocIterator struct { 196 ctrl *gomock.Controller 197 recorder *MockQueryDocIteratorMockRecorder 198 } 199 200 // MockQueryDocIteratorMockRecorder is the mock recorder for MockQueryDocIterator. 201 type MockQueryDocIteratorMockRecorder struct { 202 mock *MockQueryDocIterator 203 } 204 205 // NewMockQueryDocIterator creates a new mock instance. 206 func NewMockQueryDocIterator(ctrl *gomock.Controller) *MockQueryDocIterator { 207 mock := &MockQueryDocIterator{ctrl: ctrl} 208 mock.recorder = &MockQueryDocIteratorMockRecorder{mock} 209 return mock 210 } 211 212 // EXPECT returns an object that allows the caller to indicate expected use. 213 func (m *MockQueryDocIterator) EXPECT() *MockQueryDocIteratorMockRecorder { 214 return m.recorder 215 } 216 217 // Close mocks base method. 218 func (m *MockQueryDocIterator) Close() error { 219 m.ctrl.T.Helper() 220 ret := m.ctrl.Call(m, "Close") 221 ret0, _ := ret[0].(error) 222 return ret0 223 } 224 225 // Close indicates an expected call of Close. 226 func (mr *MockQueryDocIteratorMockRecorder) Close() *gomock.Call { 227 mr.mock.ctrl.T.Helper() 228 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockQueryDocIterator)(nil).Close)) 229 } 230 231 // Current mocks base method. 232 func (m *MockQueryDocIterator) Current() Document { 233 m.ctrl.T.Helper() 234 ret := m.ctrl.Call(m, "Current") 235 ret0, _ := ret[0].(Document) 236 return ret0 237 } 238 239 // Current indicates an expected call of Current. 240 func (mr *MockQueryDocIteratorMockRecorder) Current() *gomock.Call { 241 mr.mock.ctrl.T.Helper() 242 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Current", reflect.TypeOf((*MockQueryDocIterator)(nil).Current)) 243 } 244 245 // Done mocks base method. 246 func (m *MockQueryDocIterator) Done() bool { 247 m.ctrl.T.Helper() 248 ret := m.ctrl.Call(m, "Done") 249 ret0, _ := ret[0].(bool) 250 return ret0 251 } 252 253 // Done indicates an expected call of Done. 254 func (mr *MockQueryDocIteratorMockRecorder) Done() *gomock.Call { 255 mr.mock.ctrl.T.Helper() 256 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Done", reflect.TypeOf((*MockQueryDocIterator)(nil).Done)) 257 } 258 259 // Err mocks base method. 260 func (m *MockQueryDocIterator) Err() error { 261 m.ctrl.T.Helper() 262 ret := m.ctrl.Call(m, "Err") 263 ret0, _ := ret[0].(error) 264 return ret0 265 } 266 267 // Err indicates an expected call of Err. 268 func (mr *MockQueryDocIteratorMockRecorder) Err() *gomock.Call { 269 mr.mock.ctrl.T.Helper() 270 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockQueryDocIterator)(nil).Err)) 271 } 272 273 // Next mocks base method. 274 func (m *MockQueryDocIterator) Next() bool { 275 m.ctrl.T.Helper() 276 ret := m.ctrl.Call(m, "Next") 277 ret0, _ := ret[0].(bool) 278 return ret0 279 } 280 281 // Next indicates an expected call of Next. 282 func (mr *MockQueryDocIteratorMockRecorder) Next() *gomock.Call { 283 mr.mock.ctrl.T.Helper() 284 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockQueryDocIterator)(nil).Next)) 285 } 286 287 // MockOnIndexSeries is a mock of OnIndexSeries interface. 288 type MockOnIndexSeries struct { 289 ctrl *gomock.Controller 290 recorder *MockOnIndexSeriesMockRecorder 291 } 292 293 // MockOnIndexSeriesMockRecorder is the mock recorder for MockOnIndexSeries. 294 type MockOnIndexSeriesMockRecorder struct { 295 mock *MockOnIndexSeries 296 } 297 298 // NewMockOnIndexSeries creates a new mock instance. 299 func NewMockOnIndexSeries(ctrl *gomock.Controller) *MockOnIndexSeries { 300 mock := &MockOnIndexSeries{ctrl: ctrl} 301 mock.recorder = &MockOnIndexSeriesMockRecorder{mock} 302 return mock 303 } 304 305 // EXPECT returns an object that allows the caller to indicate expected use. 306 func (m *MockOnIndexSeries) EXPECT() *MockOnIndexSeriesMockRecorder { 307 return m.recorder 308 } 309 310 // IfAlreadyIndexedMarkIndexSuccessAndFinalize mocks base method. 311 func (m *MockOnIndexSeries) IfAlreadyIndexedMarkIndexSuccessAndFinalize(blockStart time.UnixNano) bool { 312 m.ctrl.T.Helper() 313 ret := m.ctrl.Call(m, "IfAlreadyIndexedMarkIndexSuccessAndFinalize", blockStart) 314 ret0, _ := ret[0].(bool) 315 return ret0 316 } 317 318 // IfAlreadyIndexedMarkIndexSuccessAndFinalize indicates an expected call of IfAlreadyIndexedMarkIndexSuccessAndFinalize. 319 func (mr *MockOnIndexSeriesMockRecorder) IfAlreadyIndexedMarkIndexSuccessAndFinalize(blockStart interface{}) *gomock.Call { 320 mr.mock.ctrl.T.Helper() 321 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IfAlreadyIndexedMarkIndexSuccessAndFinalize", reflect.TypeOf((*MockOnIndexSeries)(nil).IfAlreadyIndexedMarkIndexSuccessAndFinalize), blockStart) 322 } 323 324 // IndexedForBlockStart mocks base method. 325 func (m *MockOnIndexSeries) IndexedForBlockStart(blockStart time.UnixNano) bool { 326 m.ctrl.T.Helper() 327 ret := m.ctrl.Call(m, "IndexedForBlockStart", blockStart) 328 ret0, _ := ret[0].(bool) 329 return ret0 330 } 331 332 // IndexedForBlockStart indicates an expected call of IndexedForBlockStart. 333 func (mr *MockOnIndexSeriesMockRecorder) IndexedForBlockStart(blockStart interface{}) *gomock.Call { 334 mr.mock.ctrl.T.Helper() 335 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndexedForBlockStart", reflect.TypeOf((*MockOnIndexSeries)(nil).IndexedForBlockStart), blockStart) 336 } 337 338 // IndexedRange mocks base method. 339 func (m *MockOnIndexSeries) IndexedRange() (time.UnixNano, time.UnixNano) { 340 m.ctrl.T.Helper() 341 ret := m.ctrl.Call(m, "IndexedRange") 342 ret0, _ := ret[0].(time.UnixNano) 343 ret1, _ := ret[1].(time.UnixNano) 344 return ret0, ret1 345 } 346 347 // IndexedRange indicates an expected call of IndexedRange. 348 func (mr *MockOnIndexSeriesMockRecorder) IndexedRange() *gomock.Call { 349 mr.mock.ctrl.T.Helper() 350 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndexedRange", reflect.TypeOf((*MockOnIndexSeries)(nil).IndexedRange)) 351 } 352 353 // MergeEntryIndexBlockStates mocks base method. 354 func (m *MockOnIndexSeries) MergeEntryIndexBlockStates(states EntryIndexBlockStates) { 355 m.ctrl.T.Helper() 356 m.ctrl.Call(m, "MergeEntryIndexBlockStates", states) 357 } 358 359 // MergeEntryIndexBlockStates indicates an expected call of MergeEntryIndexBlockStates. 360 func (mr *MockOnIndexSeriesMockRecorder) MergeEntryIndexBlockStates(states interface{}) *gomock.Call { 361 mr.mock.ctrl.T.Helper() 362 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MergeEntryIndexBlockStates", reflect.TypeOf((*MockOnIndexSeries)(nil).MergeEntryIndexBlockStates), states) 363 } 364 365 // NeedsIndexGarbageCollected mocks base method. 366 func (m *MockOnIndexSeries) NeedsIndexGarbageCollected() bool { 367 m.ctrl.T.Helper() 368 ret := m.ctrl.Call(m, "NeedsIndexGarbageCollected") 369 ret0, _ := ret[0].(bool) 370 return ret0 371 } 372 373 // NeedsIndexGarbageCollected indicates an expected call of NeedsIndexGarbageCollected. 374 func (mr *MockOnIndexSeriesMockRecorder) NeedsIndexGarbageCollected() *gomock.Call { 375 mr.mock.ctrl.T.Helper() 376 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NeedsIndexGarbageCollected", reflect.TypeOf((*MockOnIndexSeries)(nil).NeedsIndexGarbageCollected)) 377 } 378 379 // NeedsIndexUpdate mocks base method. 380 func (m *MockOnIndexSeries) NeedsIndexUpdate(indexBlockStartForWrite time.UnixNano) bool { 381 m.ctrl.T.Helper() 382 ret := m.ctrl.Call(m, "NeedsIndexUpdate", indexBlockStartForWrite) 383 ret0, _ := ret[0].(bool) 384 return ret0 385 } 386 387 // NeedsIndexUpdate indicates an expected call of NeedsIndexUpdate. 388 func (mr *MockOnIndexSeriesMockRecorder) NeedsIndexUpdate(indexBlockStartForWrite interface{}) *gomock.Call { 389 mr.mock.ctrl.T.Helper() 390 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NeedsIndexUpdate", reflect.TypeOf((*MockOnIndexSeries)(nil).NeedsIndexUpdate), indexBlockStartForWrite) 391 } 392 393 // OnIndexFinalize mocks base method. 394 func (m *MockOnIndexSeries) OnIndexFinalize(blockStart time.UnixNano) { 395 m.ctrl.T.Helper() 396 m.ctrl.Call(m, "OnIndexFinalize", blockStart) 397 } 398 399 // OnIndexFinalize indicates an expected call of OnIndexFinalize. 400 func (mr *MockOnIndexSeriesMockRecorder) OnIndexFinalize(blockStart interface{}) *gomock.Call { 401 mr.mock.ctrl.T.Helper() 402 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnIndexFinalize", reflect.TypeOf((*MockOnIndexSeries)(nil).OnIndexFinalize), blockStart) 403 } 404 405 // OnIndexPrepare mocks base method. 406 func (m *MockOnIndexSeries) OnIndexPrepare(blockStart time.UnixNano) { 407 m.ctrl.T.Helper() 408 m.ctrl.Call(m, "OnIndexPrepare", blockStart) 409 } 410 411 // OnIndexPrepare indicates an expected call of OnIndexPrepare. 412 func (mr *MockOnIndexSeriesMockRecorder) OnIndexPrepare(blockStart interface{}) *gomock.Call { 413 mr.mock.ctrl.T.Helper() 414 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnIndexPrepare", reflect.TypeOf((*MockOnIndexSeries)(nil).OnIndexPrepare), blockStart) 415 } 416 417 // OnIndexSuccess mocks base method. 418 func (m *MockOnIndexSeries) OnIndexSuccess(blockStart time.UnixNano) { 419 m.ctrl.T.Helper() 420 m.ctrl.Call(m, "OnIndexSuccess", blockStart) 421 } 422 423 // OnIndexSuccess indicates an expected call of OnIndexSuccess. 424 func (mr *MockOnIndexSeriesMockRecorder) OnIndexSuccess(blockStart interface{}) *gomock.Call { 425 mr.mock.ctrl.T.Helper() 426 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnIndexSuccess", reflect.TypeOf((*MockOnIndexSeries)(nil).OnIndexSuccess), blockStart) 427 } 428 429 // ReconciledOnIndexSeries mocks base method. 430 func (m *MockOnIndexSeries) ReconciledOnIndexSeries() (OnIndexSeries, resource.SimpleCloser, bool) { 431 m.ctrl.T.Helper() 432 ret := m.ctrl.Call(m, "ReconciledOnIndexSeries") 433 ret0, _ := ret[0].(OnIndexSeries) 434 ret1, _ := ret[1].(resource.SimpleCloser) 435 ret2, _ := ret[2].(bool) 436 return ret0, ret1, ret2 437 } 438 439 // ReconciledOnIndexSeries indicates an expected call of ReconciledOnIndexSeries. 440 func (mr *MockOnIndexSeriesMockRecorder) ReconciledOnIndexSeries() *gomock.Call { 441 mr.mock.ctrl.T.Helper() 442 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconciledOnIndexSeries", reflect.TypeOf((*MockOnIndexSeries)(nil).ReconciledOnIndexSeries)) 443 } 444 445 // StringID mocks base method. 446 func (m *MockOnIndexSeries) StringID() string { 447 m.ctrl.T.Helper() 448 ret := m.ctrl.Call(m, "StringID") 449 ret0, _ := ret[0].(string) 450 return ret0 451 } 452 453 // StringID indicates an expected call of StringID. 454 func (mr *MockOnIndexSeriesMockRecorder) StringID() *gomock.Call { 455 mr.mock.ctrl.T.Helper() 456 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StringID", reflect.TypeOf((*MockOnIndexSeries)(nil).StringID)) 457 } 458 459 // TryMarkIndexGarbageCollected mocks base method. 460 func (m *MockOnIndexSeries) TryMarkIndexGarbageCollected() bool { 461 m.ctrl.T.Helper() 462 ret := m.ctrl.Call(m, "TryMarkIndexGarbageCollected") 463 ret0, _ := ret[0].(bool) 464 return ret0 465 } 466 467 // TryMarkIndexGarbageCollected indicates an expected call of TryMarkIndexGarbageCollected. 468 func (mr *MockOnIndexSeriesMockRecorder) TryMarkIndexGarbageCollected() *gomock.Call { 469 mr.mock.ctrl.T.Helper() 470 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TryMarkIndexGarbageCollected", reflect.TypeOf((*MockOnIndexSeries)(nil).TryMarkIndexGarbageCollected)) 471 } 472 473 // TryReconcileDuplicates mocks base method. 474 func (m *MockOnIndexSeries) TryReconcileDuplicates() { 475 m.ctrl.T.Helper() 476 m.ctrl.Call(m, "TryReconcileDuplicates") 477 } 478 479 // TryReconcileDuplicates indicates an expected call of TryReconcileDuplicates. 480 func (mr *MockOnIndexSeriesMockRecorder) TryReconcileDuplicates() *gomock.Call { 481 mr.mock.ctrl.T.Helper() 482 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TryReconcileDuplicates", reflect.TypeOf((*MockOnIndexSeries)(nil).TryReconcileDuplicates)) 483 }