github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/m3ninx/postings/postings_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: ../../postings/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 postings is a generated GoMock package. 25 package postings 26 27 import ( 28 "reflect" 29 30 "github.com/golang/mock/gomock" 31 ) 32 33 // MockList is a mock of List interface. 34 type MockList struct { 35 ctrl *gomock.Controller 36 recorder *MockListMockRecorder 37 } 38 39 // MockListMockRecorder is the mock recorder for MockList. 40 type MockListMockRecorder struct { 41 mock *MockList 42 } 43 44 // NewMockList creates a new mock instance. 45 func NewMockList(ctrl *gomock.Controller) *MockList { 46 mock := &MockList{ctrl: ctrl} 47 mock.recorder = &MockListMockRecorder{mock} 48 return mock 49 } 50 51 // EXPECT returns an object that allows the caller to indicate expected use. 52 func (m *MockList) EXPECT() *MockListMockRecorder { 53 return m.recorder 54 } 55 56 // CloneAsMutable mocks base method. 57 func (m *MockList) CloneAsMutable() MutableList { 58 m.ctrl.T.Helper() 59 ret := m.ctrl.Call(m, "CloneAsMutable") 60 ret0, _ := ret[0].(MutableList) 61 return ret0 62 } 63 64 // CloneAsMutable indicates an expected call of CloneAsMutable. 65 func (mr *MockListMockRecorder) CloneAsMutable() *gomock.Call { 66 mr.mock.ctrl.T.Helper() 67 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloneAsMutable", reflect.TypeOf((*MockList)(nil).CloneAsMutable)) 68 } 69 70 // Contains mocks base method. 71 func (m *MockList) Contains(id ID) bool { 72 m.ctrl.T.Helper() 73 ret := m.ctrl.Call(m, "Contains", id) 74 ret0, _ := ret[0].(bool) 75 return ret0 76 } 77 78 // Contains indicates an expected call of Contains. 79 func (mr *MockListMockRecorder) Contains(id interface{}) *gomock.Call { 80 mr.mock.ctrl.T.Helper() 81 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Contains", reflect.TypeOf((*MockList)(nil).Contains), id) 82 } 83 84 // Difference mocks base method. 85 func (m *MockList) Difference(other List) (List, error) { 86 m.ctrl.T.Helper() 87 ret := m.ctrl.Call(m, "Difference", other) 88 ret0, _ := ret[0].(List) 89 ret1, _ := ret[1].(error) 90 return ret0, ret1 91 } 92 93 // Difference indicates an expected call of Difference. 94 func (mr *MockListMockRecorder) Difference(other interface{}) *gomock.Call { 95 mr.mock.ctrl.T.Helper() 96 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Difference", reflect.TypeOf((*MockList)(nil).Difference), other) 97 } 98 99 // Equal mocks base method. 100 func (m *MockList) Equal(other List) bool { 101 m.ctrl.T.Helper() 102 ret := m.ctrl.Call(m, "Equal", other) 103 ret0, _ := ret[0].(bool) 104 return ret0 105 } 106 107 // Equal indicates an expected call of Equal. 108 func (mr *MockListMockRecorder) Equal(other interface{}) *gomock.Call { 109 mr.mock.ctrl.T.Helper() 110 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Equal", reflect.TypeOf((*MockList)(nil).Equal), other) 111 } 112 113 // Intersect mocks base method. 114 func (m *MockList) Intersect(other List) (List, error) { 115 m.ctrl.T.Helper() 116 ret := m.ctrl.Call(m, "Intersect", other) 117 ret0, _ := ret[0].(List) 118 ret1, _ := ret[1].(error) 119 return ret0, ret1 120 } 121 122 // Intersect indicates an expected call of Intersect. 123 func (mr *MockListMockRecorder) Intersect(other interface{}) *gomock.Call { 124 mr.mock.ctrl.T.Helper() 125 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Intersect", reflect.TypeOf((*MockList)(nil).Intersect), other) 126 } 127 128 // IsEmpty mocks base method. 129 func (m *MockList) IsEmpty() bool { 130 m.ctrl.T.Helper() 131 ret := m.ctrl.Call(m, "IsEmpty") 132 ret0, _ := ret[0].(bool) 133 return ret0 134 } 135 136 // IsEmpty indicates an expected call of IsEmpty. 137 func (mr *MockListMockRecorder) IsEmpty() *gomock.Call { 138 mr.mock.ctrl.T.Helper() 139 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsEmpty", reflect.TypeOf((*MockList)(nil).IsEmpty)) 140 } 141 142 // Iterator mocks base method. 143 func (m *MockList) Iterator() Iterator { 144 m.ctrl.T.Helper() 145 ret := m.ctrl.Call(m, "Iterator") 146 ret0, _ := ret[0].(Iterator) 147 return ret0 148 } 149 150 // Iterator indicates an expected call of Iterator. 151 func (mr *MockListMockRecorder) Iterator() *gomock.Call { 152 mr.mock.ctrl.T.Helper() 153 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Iterator", reflect.TypeOf((*MockList)(nil).Iterator)) 154 } 155 156 // Len mocks base method. 157 func (m *MockList) Len() int { 158 m.ctrl.T.Helper() 159 ret := m.ctrl.Call(m, "Len") 160 ret0, _ := ret[0].(int) 161 return ret0 162 } 163 164 // Len indicates an expected call of Len. 165 func (mr *MockListMockRecorder) Len() *gomock.Call { 166 mr.mock.ctrl.T.Helper() 167 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Len", reflect.TypeOf((*MockList)(nil).Len)) 168 } 169 170 // Max mocks base method. 171 func (m *MockList) Max() (ID, error) { 172 m.ctrl.T.Helper() 173 ret := m.ctrl.Call(m, "Max") 174 ret0, _ := ret[0].(ID) 175 ret1, _ := ret[1].(error) 176 return ret0, ret1 177 } 178 179 // Max indicates an expected call of Max. 180 func (mr *MockListMockRecorder) Max() *gomock.Call { 181 mr.mock.ctrl.T.Helper() 182 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Max", reflect.TypeOf((*MockList)(nil).Max)) 183 } 184 185 // MockMutableList is a mock of MutableList interface. 186 type MockMutableList struct { 187 ctrl *gomock.Controller 188 recorder *MockMutableListMockRecorder 189 } 190 191 // MockMutableListMockRecorder is the mock recorder for MockMutableList. 192 type MockMutableListMockRecorder struct { 193 mock *MockMutableList 194 } 195 196 // NewMockMutableList creates a new mock instance. 197 func NewMockMutableList(ctrl *gomock.Controller) *MockMutableList { 198 mock := &MockMutableList{ctrl: ctrl} 199 mock.recorder = &MockMutableListMockRecorder{mock} 200 return mock 201 } 202 203 // EXPECT returns an object that allows the caller to indicate expected use. 204 func (m *MockMutableList) EXPECT() *MockMutableListMockRecorder { 205 return m.recorder 206 } 207 208 // AddIterator mocks base method. 209 func (m *MockMutableList) AddIterator(iter Iterator) error { 210 m.ctrl.T.Helper() 211 ret := m.ctrl.Call(m, "AddIterator", iter) 212 ret0, _ := ret[0].(error) 213 return ret0 214 } 215 216 // AddIterator indicates an expected call of AddIterator. 217 func (mr *MockMutableListMockRecorder) AddIterator(iter interface{}) *gomock.Call { 218 mr.mock.ctrl.T.Helper() 219 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddIterator", reflect.TypeOf((*MockMutableList)(nil).AddIterator), iter) 220 } 221 222 // AddRange mocks base method. 223 func (m *MockMutableList) AddRange(min, max ID) error { 224 m.ctrl.T.Helper() 225 ret := m.ctrl.Call(m, "AddRange", min, max) 226 ret0, _ := ret[0].(error) 227 return ret0 228 } 229 230 // AddRange indicates an expected call of AddRange. 231 func (mr *MockMutableListMockRecorder) AddRange(min, max interface{}) *gomock.Call { 232 mr.mock.ctrl.T.Helper() 233 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddRange", reflect.TypeOf((*MockMutableList)(nil).AddRange), min, max) 234 } 235 236 // CloneAsMutable mocks base method. 237 func (m *MockMutableList) CloneAsMutable() MutableList { 238 m.ctrl.T.Helper() 239 ret := m.ctrl.Call(m, "CloneAsMutable") 240 ret0, _ := ret[0].(MutableList) 241 return ret0 242 } 243 244 // CloneAsMutable indicates an expected call of CloneAsMutable. 245 func (mr *MockMutableListMockRecorder) CloneAsMutable() *gomock.Call { 246 mr.mock.ctrl.T.Helper() 247 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloneAsMutable", reflect.TypeOf((*MockMutableList)(nil).CloneAsMutable)) 248 } 249 250 // Contains mocks base method. 251 func (m *MockMutableList) Contains(id ID) bool { 252 m.ctrl.T.Helper() 253 ret := m.ctrl.Call(m, "Contains", id) 254 ret0, _ := ret[0].(bool) 255 return ret0 256 } 257 258 // Contains indicates an expected call of Contains. 259 func (mr *MockMutableListMockRecorder) Contains(id interface{}) *gomock.Call { 260 mr.mock.ctrl.T.Helper() 261 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Contains", reflect.TypeOf((*MockMutableList)(nil).Contains), id) 262 } 263 264 // Difference mocks base method. 265 func (m *MockMutableList) Difference(other List) (List, error) { 266 m.ctrl.T.Helper() 267 ret := m.ctrl.Call(m, "Difference", other) 268 ret0, _ := ret[0].(List) 269 ret1, _ := ret[1].(error) 270 return ret0, ret1 271 } 272 273 // Difference indicates an expected call of Difference. 274 func (mr *MockMutableListMockRecorder) Difference(other interface{}) *gomock.Call { 275 mr.mock.ctrl.T.Helper() 276 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Difference", reflect.TypeOf((*MockMutableList)(nil).Difference), other) 277 } 278 279 // Equal mocks base method. 280 func (m *MockMutableList) Equal(other List) bool { 281 m.ctrl.T.Helper() 282 ret := m.ctrl.Call(m, "Equal", other) 283 ret0, _ := ret[0].(bool) 284 return ret0 285 } 286 287 // Equal indicates an expected call of Equal. 288 func (mr *MockMutableListMockRecorder) Equal(other interface{}) *gomock.Call { 289 mr.mock.ctrl.T.Helper() 290 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Equal", reflect.TypeOf((*MockMutableList)(nil).Equal), other) 291 } 292 293 // Insert mocks base method. 294 func (m *MockMutableList) Insert(i ID) error { 295 m.ctrl.T.Helper() 296 ret := m.ctrl.Call(m, "Insert", i) 297 ret0, _ := ret[0].(error) 298 return ret0 299 } 300 301 // Insert indicates an expected call of Insert. 302 func (mr *MockMutableListMockRecorder) Insert(i interface{}) *gomock.Call { 303 mr.mock.ctrl.T.Helper() 304 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockMutableList)(nil).Insert), i) 305 } 306 307 // Intersect mocks base method. 308 func (m *MockMutableList) Intersect(other List) (List, error) { 309 m.ctrl.T.Helper() 310 ret := m.ctrl.Call(m, "Intersect", other) 311 ret0, _ := ret[0].(List) 312 ret1, _ := ret[1].(error) 313 return ret0, ret1 314 } 315 316 // Intersect indicates an expected call of Intersect. 317 func (mr *MockMutableListMockRecorder) Intersect(other interface{}) *gomock.Call { 318 mr.mock.ctrl.T.Helper() 319 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Intersect", reflect.TypeOf((*MockMutableList)(nil).Intersect), other) 320 } 321 322 // IsEmpty mocks base method. 323 func (m *MockMutableList) IsEmpty() bool { 324 m.ctrl.T.Helper() 325 ret := m.ctrl.Call(m, "IsEmpty") 326 ret0, _ := ret[0].(bool) 327 return ret0 328 } 329 330 // IsEmpty indicates an expected call of IsEmpty. 331 func (mr *MockMutableListMockRecorder) IsEmpty() *gomock.Call { 332 mr.mock.ctrl.T.Helper() 333 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsEmpty", reflect.TypeOf((*MockMutableList)(nil).IsEmpty)) 334 } 335 336 // Iterator mocks base method. 337 func (m *MockMutableList) Iterator() Iterator { 338 m.ctrl.T.Helper() 339 ret := m.ctrl.Call(m, "Iterator") 340 ret0, _ := ret[0].(Iterator) 341 return ret0 342 } 343 344 // Iterator indicates an expected call of Iterator. 345 func (mr *MockMutableListMockRecorder) Iterator() *gomock.Call { 346 mr.mock.ctrl.T.Helper() 347 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Iterator", reflect.TypeOf((*MockMutableList)(nil).Iterator)) 348 } 349 350 // Len mocks base method. 351 func (m *MockMutableList) Len() int { 352 m.ctrl.T.Helper() 353 ret := m.ctrl.Call(m, "Len") 354 ret0, _ := ret[0].(int) 355 return ret0 356 } 357 358 // Len indicates an expected call of Len. 359 func (mr *MockMutableListMockRecorder) Len() *gomock.Call { 360 mr.mock.ctrl.T.Helper() 361 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Len", reflect.TypeOf((*MockMutableList)(nil).Len)) 362 } 363 364 // Max mocks base method. 365 func (m *MockMutableList) Max() (ID, error) { 366 m.ctrl.T.Helper() 367 ret := m.ctrl.Call(m, "Max") 368 ret0, _ := ret[0].(ID) 369 ret1, _ := ret[1].(error) 370 return ret0, ret1 371 } 372 373 // Max indicates an expected call of Max. 374 func (mr *MockMutableListMockRecorder) Max() *gomock.Call { 375 mr.mock.ctrl.T.Helper() 376 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Max", reflect.TypeOf((*MockMutableList)(nil).Max)) 377 } 378 379 // RemoveRange mocks base method. 380 func (m *MockMutableList) RemoveRange(min, max ID) error { 381 m.ctrl.T.Helper() 382 ret := m.ctrl.Call(m, "RemoveRange", min, max) 383 ret0, _ := ret[0].(error) 384 return ret0 385 } 386 387 // RemoveRange indicates an expected call of RemoveRange. 388 func (mr *MockMutableListMockRecorder) RemoveRange(min, max interface{}) *gomock.Call { 389 mr.mock.ctrl.T.Helper() 390 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveRange", reflect.TypeOf((*MockMutableList)(nil).RemoveRange), min, max) 391 } 392 393 // Reset mocks base method. 394 func (m *MockMutableList) Reset() { 395 m.ctrl.T.Helper() 396 m.ctrl.Call(m, "Reset") 397 } 398 399 // Reset indicates an expected call of Reset. 400 func (mr *MockMutableListMockRecorder) Reset() *gomock.Call { 401 mr.mock.ctrl.T.Helper() 402 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockMutableList)(nil).Reset)) 403 } 404 405 // UnionInPlace mocks base method. 406 func (m *MockMutableList) UnionInPlace(other List) error { 407 m.ctrl.T.Helper() 408 ret := m.ctrl.Call(m, "UnionInPlace", other) 409 ret0, _ := ret[0].(error) 410 return ret0 411 } 412 413 // UnionInPlace indicates an expected call of UnionInPlace. 414 func (mr *MockMutableListMockRecorder) UnionInPlace(other interface{}) *gomock.Call { 415 mr.mock.ctrl.T.Helper() 416 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnionInPlace", reflect.TypeOf((*MockMutableList)(nil).UnionInPlace), other) 417 } 418 419 // UnionManyInPlace mocks base method. 420 func (m *MockMutableList) UnionManyInPlace(others []List) error { 421 m.ctrl.T.Helper() 422 ret := m.ctrl.Call(m, "UnionManyInPlace", others) 423 ret0, _ := ret[0].(error) 424 return ret0 425 } 426 427 // UnionManyInPlace indicates an expected call of UnionManyInPlace. 428 func (mr *MockMutableListMockRecorder) UnionManyInPlace(others interface{}) *gomock.Call { 429 mr.mock.ctrl.T.Helper() 430 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnionManyInPlace", reflect.TypeOf((*MockMutableList)(nil).UnionManyInPlace), others) 431 } 432 433 // MockIterator is a mock of Iterator interface. 434 type MockIterator struct { 435 ctrl *gomock.Controller 436 recorder *MockIteratorMockRecorder 437 } 438 439 // MockIteratorMockRecorder is the mock recorder for MockIterator. 440 type MockIteratorMockRecorder struct { 441 mock *MockIterator 442 } 443 444 // NewMockIterator creates a new mock instance. 445 func NewMockIterator(ctrl *gomock.Controller) *MockIterator { 446 mock := &MockIterator{ctrl: ctrl} 447 mock.recorder = &MockIteratorMockRecorder{mock} 448 return mock 449 } 450 451 // EXPECT returns an object that allows the caller to indicate expected use. 452 func (m *MockIterator) EXPECT() *MockIteratorMockRecorder { 453 return m.recorder 454 } 455 456 // Close mocks base method. 457 func (m *MockIterator) Close() error { 458 m.ctrl.T.Helper() 459 ret := m.ctrl.Call(m, "Close") 460 ret0, _ := ret[0].(error) 461 return ret0 462 } 463 464 // Close indicates an expected call of Close. 465 func (mr *MockIteratorMockRecorder) Close() *gomock.Call { 466 mr.mock.ctrl.T.Helper() 467 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockIterator)(nil).Close)) 468 } 469 470 // Current mocks base method. 471 func (m *MockIterator) Current() ID { 472 m.ctrl.T.Helper() 473 ret := m.ctrl.Call(m, "Current") 474 ret0, _ := ret[0].(ID) 475 return ret0 476 } 477 478 // Current indicates an expected call of Current. 479 func (mr *MockIteratorMockRecorder) Current() *gomock.Call { 480 mr.mock.ctrl.T.Helper() 481 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Current", reflect.TypeOf((*MockIterator)(nil).Current)) 482 } 483 484 // Err mocks base method. 485 func (m *MockIterator) Err() error { 486 m.ctrl.T.Helper() 487 ret := m.ctrl.Call(m, "Err") 488 ret0, _ := ret[0].(error) 489 return ret0 490 } 491 492 // Err indicates an expected call of Err. 493 func (mr *MockIteratorMockRecorder) Err() *gomock.Call { 494 mr.mock.ctrl.T.Helper() 495 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockIterator)(nil).Err)) 496 } 497 498 // Next mocks base method. 499 func (m *MockIterator) Next() bool { 500 m.ctrl.T.Helper() 501 ret := m.ctrl.Call(m, "Next") 502 ret0, _ := ret[0].(bool) 503 return ret0 504 } 505 506 // Next indicates an expected call of Next. 507 func (mr *MockIteratorMockRecorder) Next() *gomock.Call { 508 mr.mock.ctrl.T.Helper() 509 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockIterator)(nil).Next)) 510 } 511 512 // MockPool is a mock of Pool interface. 513 type MockPool struct { 514 ctrl *gomock.Controller 515 recorder *MockPoolMockRecorder 516 } 517 518 // MockPoolMockRecorder is the mock recorder for MockPool. 519 type MockPoolMockRecorder struct { 520 mock *MockPool 521 } 522 523 // NewMockPool creates a new mock instance. 524 func NewMockPool(ctrl *gomock.Controller) *MockPool { 525 mock := &MockPool{ctrl: ctrl} 526 mock.recorder = &MockPoolMockRecorder{mock} 527 return mock 528 } 529 530 // EXPECT returns an object that allows the caller to indicate expected use. 531 func (m *MockPool) EXPECT() *MockPoolMockRecorder { 532 return m.recorder 533 } 534 535 // Get mocks base method. 536 func (m *MockPool) Get() MutableList { 537 m.ctrl.T.Helper() 538 ret := m.ctrl.Call(m, "Get") 539 ret0, _ := ret[0].(MutableList) 540 return ret0 541 } 542 543 // Get indicates an expected call of Get. 544 func (mr *MockPoolMockRecorder) Get() *gomock.Call { 545 mr.mock.ctrl.T.Helper() 546 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockPool)(nil).Get)) 547 } 548 549 // Put mocks base method. 550 func (m *MockPool) Put(pl MutableList) { 551 m.ctrl.T.Helper() 552 m.ctrl.Call(m, "Put", pl) 553 } 554 555 // Put indicates an expected call of Put. 556 func (mr *MockPoolMockRecorder) Put(pl interface{}) *gomock.Call { 557 mr.mock.ctrl.T.Helper() 558 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockPool)(nil).Put), pl) 559 }