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