github.com/m3db/m3@v1.5.0/src/dbnode/storage/series/series_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/m3db/m3/src/dbnode/storage/series (interfaces: DatabaseSeries,QueryableBlockRetriever) 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 series is a generated GoMock package. 25 package series 26 27 import ( 28 "reflect" 29 30 "github.com/m3db/m3/src/dbnode/namespace" 31 "github.com/m3db/m3/src/dbnode/persist" 32 "github.com/m3db/m3/src/dbnode/storage/block" 33 "github.com/m3db/m3/src/dbnode/ts" 34 "github.com/m3db/m3/src/dbnode/x/xio" 35 "github.com/m3db/m3/src/m3ninx/doc" 36 "github.com/m3db/m3/src/x/context" 37 "github.com/m3db/m3/src/x/ident" 38 "github.com/m3db/m3/src/x/time" 39 40 "github.com/golang/mock/gomock" 41 ) 42 43 // MockDatabaseSeries is a mock of DatabaseSeries interface. 44 type MockDatabaseSeries struct { 45 ctrl *gomock.Controller 46 recorder *MockDatabaseSeriesMockRecorder 47 } 48 49 // MockDatabaseSeriesMockRecorder is the mock recorder for MockDatabaseSeries. 50 type MockDatabaseSeriesMockRecorder struct { 51 mock *MockDatabaseSeries 52 } 53 54 // NewMockDatabaseSeries creates a new mock instance. 55 func NewMockDatabaseSeries(ctrl *gomock.Controller) *MockDatabaseSeries { 56 mock := &MockDatabaseSeries{ctrl: ctrl} 57 mock.recorder = &MockDatabaseSeriesMockRecorder{mock} 58 return mock 59 } 60 61 // EXPECT returns an object that allows the caller to indicate expected use. 62 func (m *MockDatabaseSeries) EXPECT() *MockDatabaseSeriesMockRecorder { 63 return m.recorder 64 } 65 66 // Bootstrap mocks base method. 67 func (m *MockDatabaseSeries) Bootstrap(arg0 namespace.Context) error { 68 m.ctrl.T.Helper() 69 ret := m.ctrl.Call(m, "Bootstrap", arg0) 70 ret0, _ := ret[0].(error) 71 return ret0 72 } 73 74 // Bootstrap indicates an expected call of Bootstrap. 75 func (mr *MockDatabaseSeriesMockRecorder) Bootstrap(arg0 interface{}) *gomock.Call { 76 mr.mock.ctrl.T.Helper() 77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bootstrap", reflect.TypeOf((*MockDatabaseSeries)(nil).Bootstrap), arg0) 78 } 79 80 // Close mocks base method. 81 func (m *MockDatabaseSeries) Close() { 82 m.ctrl.T.Helper() 83 m.ctrl.Call(m, "Close") 84 } 85 86 // Close indicates an expected call of Close. 87 func (mr *MockDatabaseSeriesMockRecorder) Close() *gomock.Call { 88 mr.mock.ctrl.T.Helper() 89 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockDatabaseSeries)(nil).Close)) 90 } 91 92 // ColdFlushBlockStarts mocks base method. 93 func (m *MockDatabaseSeries) ColdFlushBlockStarts(arg0 BootstrappedBlockStateSnapshot) OptimizedTimes { 94 m.ctrl.T.Helper() 95 ret := m.ctrl.Call(m, "ColdFlushBlockStarts", arg0) 96 ret0, _ := ret[0].(OptimizedTimes) 97 return ret0 98 } 99 100 // ColdFlushBlockStarts indicates an expected call of ColdFlushBlockStarts. 101 func (mr *MockDatabaseSeriesMockRecorder) ColdFlushBlockStarts(arg0 interface{}) *gomock.Call { 102 mr.mock.ctrl.T.Helper() 103 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ColdFlushBlockStarts", reflect.TypeOf((*MockDatabaseSeries)(nil).ColdFlushBlockStarts), arg0) 104 } 105 106 // FetchBlocks mocks base method. 107 func (m *MockDatabaseSeries) FetchBlocks(arg0 context.Context, arg1 []time.UnixNano, arg2 namespace.Context) ([]block.FetchBlockResult, error) { 108 m.ctrl.T.Helper() 109 ret := m.ctrl.Call(m, "FetchBlocks", arg0, arg1, arg2) 110 ret0, _ := ret[0].([]block.FetchBlockResult) 111 ret1, _ := ret[1].(error) 112 return ret0, ret1 113 } 114 115 // FetchBlocks indicates an expected call of FetchBlocks. 116 func (mr *MockDatabaseSeriesMockRecorder) FetchBlocks(arg0, arg1, arg2 interface{}) *gomock.Call { 117 mr.mock.ctrl.T.Helper() 118 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBlocks", reflect.TypeOf((*MockDatabaseSeries)(nil).FetchBlocks), arg0, arg1, arg2) 119 } 120 121 // FetchBlocksForColdFlush mocks base method. 122 func (m *MockDatabaseSeries) FetchBlocksForColdFlush(arg0 context.Context, arg1 time.UnixNano, arg2 int, arg3 namespace.Context) (block.FetchBlockResult, error) { 123 m.ctrl.T.Helper() 124 ret := m.ctrl.Call(m, "FetchBlocksForColdFlush", arg0, arg1, arg2, arg3) 125 ret0, _ := ret[0].(block.FetchBlockResult) 126 ret1, _ := ret[1].(error) 127 return ret0, ret1 128 } 129 130 // FetchBlocksForColdFlush indicates an expected call of FetchBlocksForColdFlush. 131 func (mr *MockDatabaseSeriesMockRecorder) FetchBlocksForColdFlush(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 132 mr.mock.ctrl.T.Helper() 133 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBlocksForColdFlush", reflect.TypeOf((*MockDatabaseSeries)(nil).FetchBlocksForColdFlush), arg0, arg1, arg2, arg3) 134 } 135 136 // FetchBlocksMetadata mocks base method. 137 func (m *MockDatabaseSeries) FetchBlocksMetadata(arg0 context.Context, arg1, arg2 time.UnixNano, arg3 FetchBlocksMetadataOptions) (block.FetchBlocksMetadataResult, error) { 138 m.ctrl.T.Helper() 139 ret := m.ctrl.Call(m, "FetchBlocksMetadata", arg0, arg1, arg2, arg3) 140 ret0, _ := ret[0].(block.FetchBlocksMetadataResult) 141 ret1, _ := ret[1].(error) 142 return ret0, ret1 143 } 144 145 // FetchBlocksMetadata indicates an expected call of FetchBlocksMetadata. 146 func (mr *MockDatabaseSeriesMockRecorder) FetchBlocksMetadata(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 147 mr.mock.ctrl.T.Helper() 148 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBlocksMetadata", reflect.TypeOf((*MockDatabaseSeries)(nil).FetchBlocksMetadata), arg0, arg1, arg2, arg3) 149 } 150 151 // ID mocks base method. 152 func (m *MockDatabaseSeries) ID() ident.ID { 153 m.ctrl.T.Helper() 154 ret := m.ctrl.Call(m, "ID") 155 ret0, _ := ret[0].(ident.ID) 156 return ret0 157 } 158 159 // ID indicates an expected call of ID. 160 func (mr *MockDatabaseSeriesMockRecorder) ID() *gomock.Call { 161 mr.mock.ctrl.T.Helper() 162 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ID", reflect.TypeOf((*MockDatabaseSeries)(nil).ID)) 163 } 164 165 // IsEmpty mocks base method. 166 func (m *MockDatabaseSeries) IsEmpty() bool { 167 m.ctrl.T.Helper() 168 ret := m.ctrl.Call(m, "IsEmpty") 169 ret0, _ := ret[0].(bool) 170 return ret0 171 } 172 173 // IsEmpty indicates an expected call of IsEmpty. 174 func (mr *MockDatabaseSeriesMockRecorder) IsEmpty() *gomock.Call { 175 mr.mock.ctrl.T.Helper() 176 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsEmpty", reflect.TypeOf((*MockDatabaseSeries)(nil).IsEmpty)) 177 } 178 179 // LoadBlock mocks base method. 180 func (m *MockDatabaseSeries) LoadBlock(arg0 block.DatabaseBlock, arg1 WriteType) error { 181 m.ctrl.T.Helper() 182 ret := m.ctrl.Call(m, "LoadBlock", arg0, arg1) 183 ret0, _ := ret[0].(error) 184 return ret0 185 } 186 187 // LoadBlock indicates an expected call of LoadBlock. 188 func (mr *MockDatabaseSeriesMockRecorder) LoadBlock(arg0, arg1 interface{}) *gomock.Call { 189 mr.mock.ctrl.T.Helper() 190 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadBlock", reflect.TypeOf((*MockDatabaseSeries)(nil).LoadBlock), arg0, arg1) 191 } 192 193 // MarkNonEmptyBlocks mocks base method. 194 func (m *MockDatabaseSeries) MarkNonEmptyBlocks(arg0 map[time.UnixNano]struct{}) { 195 m.ctrl.T.Helper() 196 m.ctrl.Call(m, "MarkNonEmptyBlocks", arg0) 197 } 198 199 // MarkNonEmptyBlocks indicates an expected call of MarkNonEmptyBlocks. 200 func (mr *MockDatabaseSeriesMockRecorder) MarkNonEmptyBlocks(arg0 interface{}) *gomock.Call { 201 mr.mock.ctrl.T.Helper() 202 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarkNonEmptyBlocks", reflect.TypeOf((*MockDatabaseSeries)(nil).MarkNonEmptyBlocks), arg0) 203 } 204 205 // Metadata mocks base method. 206 func (m *MockDatabaseSeries) Metadata() doc.Metadata { 207 m.ctrl.T.Helper() 208 ret := m.ctrl.Call(m, "Metadata") 209 ret0, _ := ret[0].(doc.Metadata) 210 return ret0 211 } 212 213 // Metadata indicates an expected call of Metadata. 214 func (mr *MockDatabaseSeriesMockRecorder) Metadata() *gomock.Call { 215 mr.mock.ctrl.T.Helper() 216 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Metadata", reflect.TypeOf((*MockDatabaseSeries)(nil).Metadata)) 217 } 218 219 // NumActiveBlocks mocks base method. 220 func (m *MockDatabaseSeries) NumActiveBlocks() int { 221 m.ctrl.T.Helper() 222 ret := m.ctrl.Call(m, "NumActiveBlocks") 223 ret0, _ := ret[0].(int) 224 return ret0 225 } 226 227 // NumActiveBlocks indicates an expected call of NumActiveBlocks. 228 func (mr *MockDatabaseSeriesMockRecorder) NumActiveBlocks() *gomock.Call { 229 mr.mock.ctrl.T.Helper() 230 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NumActiveBlocks", reflect.TypeOf((*MockDatabaseSeries)(nil).NumActiveBlocks)) 231 } 232 233 // OnEvictedFromWiredList mocks base method. 234 func (m *MockDatabaseSeries) OnEvictedFromWiredList(arg0 ident.ID, arg1 time.UnixNano) { 235 m.ctrl.T.Helper() 236 m.ctrl.Call(m, "OnEvictedFromWiredList", arg0, arg1) 237 } 238 239 // OnEvictedFromWiredList indicates an expected call of OnEvictedFromWiredList. 240 func (mr *MockDatabaseSeriesMockRecorder) OnEvictedFromWiredList(arg0, arg1 interface{}) *gomock.Call { 241 mr.mock.ctrl.T.Helper() 242 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnEvictedFromWiredList", reflect.TypeOf((*MockDatabaseSeries)(nil).OnEvictedFromWiredList), arg0, arg1) 243 } 244 245 // OnRetrieveBlock mocks base method. 246 func (m *MockDatabaseSeries) OnRetrieveBlock(arg0 ident.ID, arg1 ident.TagIterator, arg2 time.UnixNano, arg3 ts.Segment, arg4 namespace.Context) { 247 m.ctrl.T.Helper() 248 m.ctrl.Call(m, "OnRetrieveBlock", arg0, arg1, arg2, arg3, arg4) 249 } 250 251 // OnRetrieveBlock indicates an expected call of OnRetrieveBlock. 252 func (mr *MockDatabaseSeriesMockRecorder) OnRetrieveBlock(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 253 mr.mock.ctrl.T.Helper() 254 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnRetrieveBlock", reflect.TypeOf((*MockDatabaseSeries)(nil).OnRetrieveBlock), arg0, arg1, arg2, arg3, arg4) 255 } 256 257 // ReadEncoded mocks base method. 258 func (m *MockDatabaseSeries) ReadEncoded(arg0 context.Context, arg1, arg2 time.UnixNano, arg3 namespace.Context) (BlockReaderIter, error) { 259 m.ctrl.T.Helper() 260 ret := m.ctrl.Call(m, "ReadEncoded", arg0, arg1, arg2, arg3) 261 ret0, _ := ret[0].(BlockReaderIter) 262 ret1, _ := ret[1].(error) 263 return ret0, ret1 264 } 265 266 // ReadEncoded indicates an expected call of ReadEncoded. 267 func (mr *MockDatabaseSeriesMockRecorder) ReadEncoded(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 268 mr.mock.ctrl.T.Helper() 269 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadEncoded", reflect.TypeOf((*MockDatabaseSeries)(nil).ReadEncoded), arg0, arg1, arg2, arg3) 270 } 271 272 // Reset mocks base method. 273 func (m *MockDatabaseSeries) Reset(arg0 DatabaseSeriesOptions) { 274 m.ctrl.T.Helper() 275 m.ctrl.Call(m, "Reset", arg0) 276 } 277 278 // Reset indicates an expected call of Reset. 279 func (mr *MockDatabaseSeriesMockRecorder) Reset(arg0 interface{}) *gomock.Call { 280 mr.mock.ctrl.T.Helper() 281 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockDatabaseSeries)(nil).Reset), arg0) 282 } 283 284 // Snapshot mocks base method. 285 func (m *MockDatabaseSeries) Snapshot(arg0 context.Context, arg1 time.UnixNano, arg2 persist.DataFn, arg3 namespace.Context) (SnapshotResult, error) { 286 m.ctrl.T.Helper() 287 ret := m.ctrl.Call(m, "Snapshot", arg0, arg1, arg2, arg3) 288 ret0, _ := ret[0].(SnapshotResult) 289 ret1, _ := ret[1].(error) 290 return ret0, ret1 291 } 292 293 // Snapshot indicates an expected call of Snapshot. 294 func (mr *MockDatabaseSeriesMockRecorder) Snapshot(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 295 mr.mock.ctrl.T.Helper() 296 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Snapshot", reflect.TypeOf((*MockDatabaseSeries)(nil).Snapshot), arg0, arg1, arg2, arg3) 297 } 298 299 // Tick mocks base method. 300 func (m *MockDatabaseSeries) Tick(arg0 ShardBlockStateSnapshot, arg1 namespace.Context) (TickResult, error) { 301 m.ctrl.T.Helper() 302 ret := m.ctrl.Call(m, "Tick", arg0, arg1) 303 ret0, _ := ret[0].(TickResult) 304 ret1, _ := ret[1].(error) 305 return ret0, ret1 306 } 307 308 // Tick indicates an expected call of Tick. 309 func (mr *MockDatabaseSeriesMockRecorder) Tick(arg0, arg1 interface{}) *gomock.Call { 310 mr.mock.ctrl.T.Helper() 311 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tick", reflect.TypeOf((*MockDatabaseSeries)(nil).Tick), arg0, arg1) 312 } 313 314 // UniqueIndex mocks base method. 315 func (m *MockDatabaseSeries) UniqueIndex() uint64 { 316 m.ctrl.T.Helper() 317 ret := m.ctrl.Call(m, "UniqueIndex") 318 ret0, _ := ret[0].(uint64) 319 return ret0 320 } 321 322 // UniqueIndex indicates an expected call of UniqueIndex. 323 func (mr *MockDatabaseSeriesMockRecorder) UniqueIndex() *gomock.Call { 324 mr.mock.ctrl.T.Helper() 325 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UniqueIndex", reflect.TypeOf((*MockDatabaseSeries)(nil).UniqueIndex)) 326 } 327 328 // WarmFlush mocks base method. 329 func (m *MockDatabaseSeries) WarmFlush(arg0 context.Context, arg1 time.UnixNano, arg2 persist.DataFn, arg3 namespace.Context) (FlushOutcome, error) { 330 m.ctrl.T.Helper() 331 ret := m.ctrl.Call(m, "WarmFlush", arg0, arg1, arg2, arg3) 332 ret0, _ := ret[0].(FlushOutcome) 333 ret1, _ := ret[1].(error) 334 return ret0, ret1 335 } 336 337 // WarmFlush indicates an expected call of WarmFlush. 338 func (mr *MockDatabaseSeriesMockRecorder) WarmFlush(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 339 mr.mock.ctrl.T.Helper() 340 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WarmFlush", reflect.TypeOf((*MockDatabaseSeries)(nil).WarmFlush), arg0, arg1, arg2, arg3) 341 } 342 343 // Write mocks base method. 344 func (m *MockDatabaseSeries) Write(arg0 context.Context, arg1 time.UnixNano, arg2 float64, arg3 time.Unit, arg4 []byte, arg5 WriteOptions) (bool, WriteType, error) { 345 m.ctrl.T.Helper() 346 ret := m.ctrl.Call(m, "Write", arg0, arg1, arg2, arg3, arg4, arg5) 347 ret0, _ := ret[0].(bool) 348 ret1, _ := ret[1].(WriteType) 349 ret2, _ := ret[2].(error) 350 return ret0, ret1, ret2 351 } 352 353 // Write indicates an expected call of Write. 354 func (mr *MockDatabaseSeriesMockRecorder) Write(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call { 355 mr.mock.ctrl.T.Helper() 356 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockDatabaseSeries)(nil).Write), arg0, arg1, arg2, arg3, arg4, arg5) 357 } 358 359 // MockQueryableBlockRetriever is a mock of QueryableBlockRetriever interface. 360 type MockQueryableBlockRetriever struct { 361 ctrl *gomock.Controller 362 recorder *MockQueryableBlockRetrieverMockRecorder 363 } 364 365 // MockQueryableBlockRetrieverMockRecorder is the mock recorder for MockQueryableBlockRetriever. 366 type MockQueryableBlockRetrieverMockRecorder struct { 367 mock *MockQueryableBlockRetriever 368 } 369 370 // NewMockQueryableBlockRetriever creates a new mock instance. 371 func NewMockQueryableBlockRetriever(ctrl *gomock.Controller) *MockQueryableBlockRetriever { 372 mock := &MockQueryableBlockRetriever{ctrl: ctrl} 373 mock.recorder = &MockQueryableBlockRetrieverMockRecorder{mock} 374 return mock 375 } 376 377 // EXPECT returns an object that allows the caller to indicate expected use. 378 func (m *MockQueryableBlockRetriever) EXPECT() *MockQueryableBlockRetrieverMockRecorder { 379 return m.recorder 380 } 381 382 // BlockStatesSnapshot mocks base method. 383 func (m *MockQueryableBlockRetriever) BlockStatesSnapshot() ShardBlockStateSnapshot { 384 m.ctrl.T.Helper() 385 ret := m.ctrl.Call(m, "BlockStatesSnapshot") 386 ret0, _ := ret[0].(ShardBlockStateSnapshot) 387 return ret0 388 } 389 390 // BlockStatesSnapshot indicates an expected call of BlockStatesSnapshot. 391 func (mr *MockQueryableBlockRetrieverMockRecorder) BlockStatesSnapshot() *gomock.Call { 392 mr.mock.ctrl.T.Helper() 393 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockStatesSnapshot", reflect.TypeOf((*MockQueryableBlockRetriever)(nil).BlockStatesSnapshot)) 394 } 395 396 // IsBlockRetrievable mocks base method. 397 func (m *MockQueryableBlockRetriever) IsBlockRetrievable(arg0 time.UnixNano) (bool, error) { 398 m.ctrl.T.Helper() 399 ret := m.ctrl.Call(m, "IsBlockRetrievable", arg0) 400 ret0, _ := ret[0].(bool) 401 ret1, _ := ret[1].(error) 402 return ret0, ret1 403 } 404 405 // IsBlockRetrievable indicates an expected call of IsBlockRetrievable. 406 func (mr *MockQueryableBlockRetrieverMockRecorder) IsBlockRetrievable(arg0 interface{}) *gomock.Call { 407 mr.mock.ctrl.T.Helper() 408 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsBlockRetrievable", reflect.TypeOf((*MockQueryableBlockRetriever)(nil).IsBlockRetrievable), arg0) 409 } 410 411 // RetrievableBlockColdVersion mocks base method. 412 func (m *MockQueryableBlockRetriever) RetrievableBlockColdVersion(arg0 time.UnixNano) (int, error) { 413 m.ctrl.T.Helper() 414 ret := m.ctrl.Call(m, "RetrievableBlockColdVersion", arg0) 415 ret0, _ := ret[0].(int) 416 ret1, _ := ret[1].(error) 417 return ret0, ret1 418 } 419 420 // RetrievableBlockColdVersion indicates an expected call of RetrievableBlockColdVersion. 421 func (mr *MockQueryableBlockRetrieverMockRecorder) RetrievableBlockColdVersion(arg0 interface{}) *gomock.Call { 422 mr.mock.ctrl.T.Helper() 423 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RetrievableBlockColdVersion", reflect.TypeOf((*MockQueryableBlockRetriever)(nil).RetrievableBlockColdVersion), arg0) 424 } 425 426 // Stream mocks base method. 427 func (m *MockQueryableBlockRetriever) Stream(arg0 context.Context, arg1 ident.ID, arg2 time.UnixNano, arg3 block.OnRetrieveBlock, arg4 namespace.Context) (xio.BlockReader, error) { 428 m.ctrl.T.Helper() 429 ret := m.ctrl.Call(m, "Stream", arg0, arg1, arg2, arg3, arg4) 430 ret0, _ := ret[0].(xio.BlockReader) 431 ret1, _ := ret[1].(error) 432 return ret0, ret1 433 } 434 435 // Stream indicates an expected call of Stream. 436 func (mr *MockQueryableBlockRetrieverMockRecorder) Stream(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 437 mr.mock.ctrl.T.Helper() 438 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stream", reflect.TypeOf((*MockQueryableBlockRetriever)(nil).Stream), arg0, arg1, arg2, arg3, arg4) 439 }