forked from m3db/m3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
postings_mock.go
513 lines (437 loc) · 15.4 KB
/
postings_mock.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/m3db/m3/src/m3ninx/postings/types.go
// Copyright (c) 2018 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// Package postings is a generated GoMock package.
package postings
import (
"reflect"
"github.com/golang/mock/gomock"
)
// MockList is a mock of List interface
type MockList struct {
ctrl *gomock.Controller
recorder *MockListMockRecorder
}
// MockListMockRecorder is the mock recorder for MockList
type MockListMockRecorder struct {
mock *MockList
}
// NewMockList creates a new mock instance
func NewMockList(ctrl *gomock.Controller) *MockList {
mock := &MockList{ctrl: ctrl}
mock.recorder = &MockListMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockList) EXPECT() *MockListMockRecorder {
return m.recorder
}
// Contains mocks base method
func (m *MockList) Contains(id ID) bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Contains", id)
ret0, _ := ret[0].(bool)
return ret0
}
// Contains indicates an expected call of Contains
func (mr *MockListMockRecorder) Contains(id interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Contains", reflect.TypeOf((*MockList)(nil).Contains), id)
}
// IsEmpty mocks base method
func (m *MockList) IsEmpty() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IsEmpty")
ret0, _ := ret[0].(bool)
return ret0
}
// IsEmpty indicates an expected call of IsEmpty
func (mr *MockListMockRecorder) IsEmpty() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsEmpty", reflect.TypeOf((*MockList)(nil).IsEmpty))
}
// Max mocks base method
func (m *MockList) Max() (ID, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Max")
ret0, _ := ret[0].(ID)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Max indicates an expected call of Max
func (mr *MockListMockRecorder) Max() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Max", reflect.TypeOf((*MockList)(nil).Max))
}
// Len mocks base method
func (m *MockList) Len() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Len")
ret0, _ := ret[0].(int)
return ret0
}
// Len indicates an expected call of Len
func (mr *MockListMockRecorder) Len() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Len", reflect.TypeOf((*MockList)(nil).Len))
}
// Iterator mocks base method
func (m *MockList) Iterator() Iterator {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Iterator")
ret0, _ := ret[0].(Iterator)
return ret0
}
// Iterator indicates an expected call of Iterator
func (mr *MockListMockRecorder) Iterator() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Iterator", reflect.TypeOf((*MockList)(nil).Iterator))
}
// Clone mocks base method
func (m *MockList) Clone() MutableList {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Clone")
ret0, _ := ret[0].(MutableList)
return ret0
}
// Clone indicates an expected call of Clone
func (mr *MockListMockRecorder) Clone() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clone", reflect.TypeOf((*MockList)(nil).Clone))
}
// Equal mocks base method
func (m *MockList) Equal(other List) bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Equal", other)
ret0, _ := ret[0].(bool)
return ret0
}
// Equal indicates an expected call of Equal
func (mr *MockListMockRecorder) Equal(other interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Equal", reflect.TypeOf((*MockList)(nil).Equal), other)
}
// MockMutableList is a mock of MutableList interface
type MockMutableList struct {
ctrl *gomock.Controller
recorder *MockMutableListMockRecorder
}
// MockMutableListMockRecorder is the mock recorder for MockMutableList
type MockMutableListMockRecorder struct {
mock *MockMutableList
}
// NewMockMutableList creates a new mock instance
func NewMockMutableList(ctrl *gomock.Controller) *MockMutableList {
mock := &MockMutableList{ctrl: ctrl}
mock.recorder = &MockMutableListMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockMutableList) EXPECT() *MockMutableListMockRecorder {
return m.recorder
}
// Contains mocks base method
func (m *MockMutableList) Contains(id ID) bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Contains", id)
ret0, _ := ret[0].(bool)
return ret0
}
// Contains indicates an expected call of Contains
func (mr *MockMutableListMockRecorder) Contains(id interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Contains", reflect.TypeOf((*MockMutableList)(nil).Contains), id)
}
// IsEmpty mocks base method
func (m *MockMutableList) IsEmpty() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IsEmpty")
ret0, _ := ret[0].(bool)
return ret0
}
// IsEmpty indicates an expected call of IsEmpty
func (mr *MockMutableListMockRecorder) IsEmpty() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsEmpty", reflect.TypeOf((*MockMutableList)(nil).IsEmpty))
}
// Max mocks base method
func (m *MockMutableList) Max() (ID, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Max")
ret0, _ := ret[0].(ID)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Max indicates an expected call of Max
func (mr *MockMutableListMockRecorder) Max() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Max", reflect.TypeOf((*MockMutableList)(nil).Max))
}
// Len mocks base method
func (m *MockMutableList) Len() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Len")
ret0, _ := ret[0].(int)
return ret0
}
// Len indicates an expected call of Len
func (mr *MockMutableListMockRecorder) Len() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Len", reflect.TypeOf((*MockMutableList)(nil).Len))
}
// Iterator mocks base method
func (m *MockMutableList) Iterator() Iterator {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Iterator")
ret0, _ := ret[0].(Iterator)
return ret0
}
// Iterator indicates an expected call of Iterator
func (mr *MockMutableListMockRecorder) Iterator() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Iterator", reflect.TypeOf((*MockMutableList)(nil).Iterator))
}
// Clone mocks base method
func (m *MockMutableList) Clone() MutableList {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Clone")
ret0, _ := ret[0].(MutableList)
return ret0
}
// Clone indicates an expected call of Clone
func (mr *MockMutableListMockRecorder) Clone() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clone", reflect.TypeOf((*MockMutableList)(nil).Clone))
}
// Equal mocks base method
func (m *MockMutableList) Equal(other List) bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Equal", other)
ret0, _ := ret[0].(bool)
return ret0
}
// Equal indicates an expected call of Equal
func (mr *MockMutableListMockRecorder) Equal(other interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Equal", reflect.TypeOf((*MockMutableList)(nil).Equal), other)
}
// Insert mocks base method
func (m *MockMutableList) Insert(i ID) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Insert", i)
ret0, _ := ret[0].(error)
return ret0
}
// Insert indicates an expected call of Insert
func (mr *MockMutableListMockRecorder) Insert(i interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockMutableList)(nil).Insert), i)
}
// Intersect mocks base method
func (m *MockMutableList) Intersect(other List) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Intersect", other)
ret0, _ := ret[0].(error)
return ret0
}
// Intersect indicates an expected call of Intersect
func (mr *MockMutableListMockRecorder) Intersect(other interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Intersect", reflect.TypeOf((*MockMutableList)(nil).Intersect), other)
}
// Difference mocks base method
func (m *MockMutableList) Difference(other List) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Difference", other)
ret0, _ := ret[0].(error)
return ret0
}
// Difference indicates an expected call of Difference
func (mr *MockMutableListMockRecorder) Difference(other interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Difference", reflect.TypeOf((*MockMutableList)(nil).Difference), other)
}
// Union mocks base method
func (m *MockMutableList) Union(other List) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Union", other)
ret0, _ := ret[0].(error)
return ret0
}
// Union indicates an expected call of Union
func (mr *MockMutableListMockRecorder) Union(other interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Union", reflect.TypeOf((*MockMutableList)(nil).Union), other)
}
// AddIterator mocks base method
func (m *MockMutableList) AddIterator(iter Iterator) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AddIterator", iter)
ret0, _ := ret[0].(error)
return ret0
}
// AddIterator indicates an expected call of AddIterator
func (mr *MockMutableListMockRecorder) AddIterator(iter interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddIterator", reflect.TypeOf((*MockMutableList)(nil).AddIterator), iter)
}
// AddRange mocks base method
func (m *MockMutableList) AddRange(min, max ID) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AddRange", min, max)
ret0, _ := ret[0].(error)
return ret0
}
// AddRange indicates an expected call of AddRange
func (mr *MockMutableListMockRecorder) AddRange(min, max interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddRange", reflect.TypeOf((*MockMutableList)(nil).AddRange), min, max)
}
// RemoveRange mocks base method
func (m *MockMutableList) RemoveRange(min, max ID) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RemoveRange", min, max)
ret0, _ := ret[0].(error)
return ret0
}
// RemoveRange indicates an expected call of RemoveRange
func (mr *MockMutableListMockRecorder) RemoveRange(min, max interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveRange", reflect.TypeOf((*MockMutableList)(nil).RemoveRange), min, max)
}
// Reset mocks base method
func (m *MockMutableList) Reset() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Reset")
}
// Reset indicates an expected call of Reset
func (mr *MockMutableListMockRecorder) Reset() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockMutableList)(nil).Reset))
}
// MockIterator is a mock of Iterator interface
type MockIterator struct {
ctrl *gomock.Controller
recorder *MockIteratorMockRecorder
}
// MockIteratorMockRecorder is the mock recorder for MockIterator
type MockIteratorMockRecorder struct {
mock *MockIterator
}
// NewMockIterator creates a new mock instance
func NewMockIterator(ctrl *gomock.Controller) *MockIterator {
mock := &MockIterator{ctrl: ctrl}
mock.recorder = &MockIteratorMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockIterator) EXPECT() *MockIteratorMockRecorder {
return m.recorder
}
// Next mocks base method
func (m *MockIterator) Next() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Next")
ret0, _ := ret[0].(bool)
return ret0
}
// Next indicates an expected call of Next
func (mr *MockIteratorMockRecorder) Next() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockIterator)(nil).Next))
}
// Current mocks base method
func (m *MockIterator) Current() ID {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Current")
ret0, _ := ret[0].(ID)
return ret0
}
// Current indicates an expected call of Current
func (mr *MockIteratorMockRecorder) Current() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Current", reflect.TypeOf((*MockIterator)(nil).Current))
}
// Err mocks base method
func (m *MockIterator) Err() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Err")
ret0, _ := ret[0].(error)
return ret0
}
// Err indicates an expected call of Err
func (mr *MockIteratorMockRecorder) Err() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockIterator)(nil).Err))
}
// Close mocks base method
func (m *MockIterator) Close() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Close")
ret0, _ := ret[0].(error)
return ret0
}
// Close indicates an expected call of Close
func (mr *MockIteratorMockRecorder) Close() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockIterator)(nil).Close))
}
// MockPool is a mock of Pool interface
type MockPool struct {
ctrl *gomock.Controller
recorder *MockPoolMockRecorder
}
// MockPoolMockRecorder is the mock recorder for MockPool
type MockPoolMockRecorder struct {
mock *MockPool
}
// NewMockPool creates a new mock instance
func NewMockPool(ctrl *gomock.Controller) *MockPool {
mock := &MockPool{ctrl: ctrl}
mock.recorder = &MockPoolMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockPool) EXPECT() *MockPoolMockRecorder {
return m.recorder
}
// Get mocks base method
func (m *MockPool) Get() MutableList {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Get")
ret0, _ := ret[0].(MutableList)
return ret0
}
// Get indicates an expected call of Get
func (mr *MockPoolMockRecorder) Get() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockPool)(nil).Get))
}
// Put mocks base method
func (m *MockPool) Put(pl MutableList) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Put", pl)
}
// Put indicates an expected call of Put
func (mr *MockPoolMockRecorder) Put(pl interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockPool)(nil).Put), pl)
}