github.com/onflow/flow-go@v0.33.17/storage/mocks/storage.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/onflow/flow-go/storage (interfaces: Blocks,Headers,Payloads,Collections,Commits,Events,ServiceEvents,TransactionResults) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 flow "github.com/onflow/flow-go/model/flow" 12 storage "github.com/onflow/flow-go/storage" 13 transaction "github.com/onflow/flow-go/storage/badger/transaction" 14 ) 15 16 // MockBlocks is a mock of Blocks interface. 17 type MockBlocks struct { 18 ctrl *gomock.Controller 19 recorder *MockBlocksMockRecorder 20 } 21 22 // MockBlocksMockRecorder is the mock recorder for MockBlocks. 23 type MockBlocksMockRecorder struct { 24 mock *MockBlocks 25 } 26 27 // NewMockBlocks creates a new mock instance. 28 func NewMockBlocks(ctrl *gomock.Controller) *MockBlocks { 29 mock := &MockBlocks{ctrl: ctrl} 30 mock.recorder = &MockBlocksMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use. 35 func (m *MockBlocks) EXPECT() *MockBlocksMockRecorder { 36 return m.recorder 37 } 38 39 // ByCollectionID mocks base method. 40 func (m *MockBlocks) ByCollectionID(arg0 flow.Identifier) (*flow.Block, error) { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "ByCollectionID", arg0) 43 ret0, _ := ret[0].(*flow.Block) 44 ret1, _ := ret[1].(error) 45 return ret0, ret1 46 } 47 48 // ByCollectionID indicates an expected call of ByCollectionID. 49 func (mr *MockBlocksMockRecorder) ByCollectionID(arg0 interface{}) *gomock.Call { 50 mr.mock.ctrl.T.Helper() 51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByCollectionID", reflect.TypeOf((*MockBlocks)(nil).ByCollectionID), arg0) 52 } 53 54 // ByHeight mocks base method. 55 func (m *MockBlocks) ByHeight(arg0 uint64) (*flow.Block, error) { 56 m.ctrl.T.Helper() 57 ret := m.ctrl.Call(m, "ByHeight", arg0) 58 ret0, _ := ret[0].(*flow.Block) 59 ret1, _ := ret[1].(error) 60 return ret0, ret1 61 } 62 63 // ByHeight indicates an expected call of ByHeight. 64 func (mr *MockBlocksMockRecorder) ByHeight(arg0 interface{}) *gomock.Call { 65 mr.mock.ctrl.T.Helper() 66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByHeight", reflect.TypeOf((*MockBlocks)(nil).ByHeight), arg0) 67 } 68 69 // ByID mocks base method. 70 func (m *MockBlocks) ByID(arg0 flow.Identifier) (*flow.Block, error) { 71 m.ctrl.T.Helper() 72 ret := m.ctrl.Call(m, "ByID", arg0) 73 ret0, _ := ret[0].(*flow.Block) 74 ret1, _ := ret[1].(error) 75 return ret0, ret1 76 } 77 78 // ByID indicates an expected call of ByID. 79 func (mr *MockBlocksMockRecorder) ByID(arg0 interface{}) *gomock.Call { 80 mr.mock.ctrl.T.Helper() 81 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByID", reflect.TypeOf((*MockBlocks)(nil).ByID), arg0) 82 } 83 84 // GetLastFullBlockHeight mocks base method. 85 func (m *MockBlocks) GetLastFullBlockHeight() (uint64, error) { 86 m.ctrl.T.Helper() 87 ret := m.ctrl.Call(m, "GetLastFullBlockHeight") 88 ret0, _ := ret[0].(uint64) 89 ret1, _ := ret[1].(error) 90 return ret0, ret1 91 } 92 93 // GetLastFullBlockHeight indicates an expected call of GetLastFullBlockHeight. 94 func (mr *MockBlocksMockRecorder) GetLastFullBlockHeight() *gomock.Call { 95 mr.mock.ctrl.T.Helper() 96 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLastFullBlockHeight", reflect.TypeOf((*MockBlocks)(nil).GetLastFullBlockHeight)) 97 } 98 99 // IndexBlockForCollections mocks base method. 100 func (m *MockBlocks) IndexBlockForCollections(arg0 flow.Identifier, arg1 []flow.Identifier) error { 101 m.ctrl.T.Helper() 102 ret := m.ctrl.Call(m, "IndexBlockForCollections", arg0, arg1) 103 ret0, _ := ret[0].(error) 104 return ret0 105 } 106 107 // IndexBlockForCollections indicates an expected call of IndexBlockForCollections. 108 func (mr *MockBlocksMockRecorder) IndexBlockForCollections(arg0, arg1 interface{}) *gomock.Call { 109 mr.mock.ctrl.T.Helper() 110 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndexBlockForCollections", reflect.TypeOf((*MockBlocks)(nil).IndexBlockForCollections), arg0, arg1) 111 } 112 113 // InsertLastFullBlockHeightIfNotExists mocks base method. 114 func (m *MockBlocks) InsertLastFullBlockHeightIfNotExists(arg0 uint64) error { 115 m.ctrl.T.Helper() 116 ret := m.ctrl.Call(m, "InsertLastFullBlockHeightIfNotExists", arg0) 117 ret0, _ := ret[0].(error) 118 return ret0 119 } 120 121 // InsertLastFullBlockHeightIfNotExists indicates an expected call of InsertLastFullBlockHeightIfNotExists. 122 func (mr *MockBlocksMockRecorder) InsertLastFullBlockHeightIfNotExists(arg0 interface{}) *gomock.Call { 123 mr.mock.ctrl.T.Helper() 124 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsertLastFullBlockHeightIfNotExists", reflect.TypeOf((*MockBlocks)(nil).InsertLastFullBlockHeightIfNotExists), arg0) 125 } 126 127 // Store mocks base method. 128 func (m *MockBlocks) Store(arg0 *flow.Block) error { 129 m.ctrl.T.Helper() 130 ret := m.ctrl.Call(m, "Store", arg0) 131 ret0, _ := ret[0].(error) 132 return ret0 133 } 134 135 // Store indicates an expected call of Store. 136 func (mr *MockBlocksMockRecorder) Store(arg0 interface{}) *gomock.Call { 137 mr.mock.ctrl.T.Helper() 138 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Store", reflect.TypeOf((*MockBlocks)(nil).Store), arg0) 139 } 140 141 // StoreTx mocks base method. 142 func (m *MockBlocks) StoreTx(arg0 *flow.Block) func(*transaction.Tx) error { 143 m.ctrl.T.Helper() 144 ret := m.ctrl.Call(m, "StoreTx", arg0) 145 ret0, _ := ret[0].(func(*transaction.Tx) error) 146 return ret0 147 } 148 149 // StoreTx indicates an expected call of StoreTx. 150 func (mr *MockBlocksMockRecorder) StoreTx(arg0 interface{}) *gomock.Call { 151 mr.mock.ctrl.T.Helper() 152 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StoreTx", reflect.TypeOf((*MockBlocks)(nil).StoreTx), arg0) 153 } 154 155 // UpdateLastFullBlockHeight mocks base method. 156 func (m *MockBlocks) UpdateLastFullBlockHeight(arg0 uint64) error { 157 m.ctrl.T.Helper() 158 ret := m.ctrl.Call(m, "UpdateLastFullBlockHeight", arg0) 159 ret0, _ := ret[0].(error) 160 return ret0 161 } 162 163 // UpdateLastFullBlockHeight indicates an expected call of UpdateLastFullBlockHeight. 164 func (mr *MockBlocksMockRecorder) UpdateLastFullBlockHeight(arg0 interface{}) *gomock.Call { 165 mr.mock.ctrl.T.Helper() 166 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateLastFullBlockHeight", reflect.TypeOf((*MockBlocks)(nil).UpdateLastFullBlockHeight), arg0) 167 } 168 169 // MockHeaders is a mock of Headers interface. 170 type MockHeaders struct { 171 ctrl *gomock.Controller 172 recorder *MockHeadersMockRecorder 173 } 174 175 // MockHeadersMockRecorder is the mock recorder for MockHeaders. 176 type MockHeadersMockRecorder struct { 177 mock *MockHeaders 178 } 179 180 // NewMockHeaders creates a new mock instance. 181 func NewMockHeaders(ctrl *gomock.Controller) *MockHeaders { 182 mock := &MockHeaders{ctrl: ctrl} 183 mock.recorder = &MockHeadersMockRecorder{mock} 184 return mock 185 } 186 187 // EXPECT returns an object that allows the caller to indicate expected use. 188 func (m *MockHeaders) EXPECT() *MockHeadersMockRecorder { 189 return m.recorder 190 } 191 192 // BlockIDByHeight mocks base method. 193 func (m *MockHeaders) BlockIDByHeight(arg0 uint64) (flow.Identifier, error) { 194 m.ctrl.T.Helper() 195 ret := m.ctrl.Call(m, "BlockIDByHeight", arg0) 196 ret0, _ := ret[0].(flow.Identifier) 197 ret1, _ := ret[1].(error) 198 return ret0, ret1 199 } 200 201 // BlockIDByHeight indicates an expected call of BlockIDByHeight. 202 func (mr *MockHeadersMockRecorder) BlockIDByHeight(arg0 interface{}) *gomock.Call { 203 mr.mock.ctrl.T.Helper() 204 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockIDByHeight", reflect.TypeOf((*MockHeaders)(nil).BlockIDByHeight), arg0) 205 } 206 207 // ByBlockID mocks base method. 208 func (m *MockHeaders) ByBlockID(arg0 flow.Identifier) (*flow.Header, error) { 209 m.ctrl.T.Helper() 210 ret := m.ctrl.Call(m, "ByBlockID", arg0) 211 ret0, _ := ret[0].(*flow.Header) 212 ret1, _ := ret[1].(error) 213 return ret0, ret1 214 } 215 216 // ByBlockID indicates an expected call of ByBlockID. 217 func (mr *MockHeadersMockRecorder) ByBlockID(arg0 interface{}) *gomock.Call { 218 mr.mock.ctrl.T.Helper() 219 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByBlockID", reflect.TypeOf((*MockHeaders)(nil).ByBlockID), arg0) 220 } 221 222 // ByHeight mocks base method. 223 func (m *MockHeaders) ByHeight(arg0 uint64) (*flow.Header, error) { 224 m.ctrl.T.Helper() 225 ret := m.ctrl.Call(m, "ByHeight", arg0) 226 ret0, _ := ret[0].(*flow.Header) 227 ret1, _ := ret[1].(error) 228 return ret0, ret1 229 } 230 231 // ByHeight indicates an expected call of ByHeight. 232 func (mr *MockHeadersMockRecorder) ByHeight(arg0 interface{}) *gomock.Call { 233 mr.mock.ctrl.T.Helper() 234 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByHeight", reflect.TypeOf((*MockHeaders)(nil).ByHeight), arg0) 235 } 236 237 // ByParentID mocks base method. 238 func (m *MockHeaders) ByParentID(arg0 flow.Identifier) ([]*flow.Header, error) { 239 m.ctrl.T.Helper() 240 ret := m.ctrl.Call(m, "ByParentID", arg0) 241 ret0, _ := ret[0].([]*flow.Header) 242 ret1, _ := ret[1].(error) 243 return ret0, ret1 244 } 245 246 // ByParentID indicates an expected call of ByParentID. 247 func (mr *MockHeadersMockRecorder) ByParentID(arg0 interface{}) *gomock.Call { 248 mr.mock.ctrl.T.Helper() 249 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByParentID", reflect.TypeOf((*MockHeaders)(nil).ByParentID), arg0) 250 } 251 252 // Exists mocks base method. 253 func (m *MockHeaders) Exists(arg0 flow.Identifier) (bool, error) { 254 m.ctrl.T.Helper() 255 ret := m.ctrl.Call(m, "Exists", arg0) 256 ret0, _ := ret[0].(bool) 257 ret1, _ := ret[1].(error) 258 return ret0, ret1 259 } 260 261 // Exists indicates an expected call of Exists. 262 func (mr *MockHeadersMockRecorder) Exists(arg0 interface{}) *gomock.Call { 263 mr.mock.ctrl.T.Helper() 264 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Exists", reflect.TypeOf((*MockHeaders)(nil).Exists), arg0) 265 } 266 267 // Store mocks base method. 268 func (m *MockHeaders) Store(arg0 *flow.Header) error { 269 m.ctrl.T.Helper() 270 ret := m.ctrl.Call(m, "Store", arg0) 271 ret0, _ := ret[0].(error) 272 return ret0 273 } 274 275 // Store indicates an expected call of Store. 276 func (mr *MockHeadersMockRecorder) Store(arg0 interface{}) *gomock.Call { 277 mr.mock.ctrl.T.Helper() 278 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Store", reflect.TypeOf((*MockHeaders)(nil).Store), arg0) 279 } 280 281 // MockPayloads is a mock of Payloads interface. 282 type MockPayloads struct { 283 ctrl *gomock.Controller 284 recorder *MockPayloadsMockRecorder 285 } 286 287 // MockPayloadsMockRecorder is the mock recorder for MockPayloads. 288 type MockPayloadsMockRecorder struct { 289 mock *MockPayloads 290 } 291 292 // NewMockPayloads creates a new mock instance. 293 func NewMockPayloads(ctrl *gomock.Controller) *MockPayloads { 294 mock := &MockPayloads{ctrl: ctrl} 295 mock.recorder = &MockPayloadsMockRecorder{mock} 296 return mock 297 } 298 299 // EXPECT returns an object that allows the caller to indicate expected use. 300 func (m *MockPayloads) EXPECT() *MockPayloadsMockRecorder { 301 return m.recorder 302 } 303 304 // ByBlockID mocks base method. 305 func (m *MockPayloads) ByBlockID(arg0 flow.Identifier) (*flow.Payload, error) { 306 m.ctrl.T.Helper() 307 ret := m.ctrl.Call(m, "ByBlockID", arg0) 308 ret0, _ := ret[0].(*flow.Payload) 309 ret1, _ := ret[1].(error) 310 return ret0, ret1 311 } 312 313 // ByBlockID indicates an expected call of ByBlockID. 314 func (mr *MockPayloadsMockRecorder) ByBlockID(arg0 interface{}) *gomock.Call { 315 mr.mock.ctrl.T.Helper() 316 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByBlockID", reflect.TypeOf((*MockPayloads)(nil).ByBlockID), arg0) 317 } 318 319 // Store mocks base method. 320 func (m *MockPayloads) Store(arg0 flow.Identifier, arg1 *flow.Payload) error { 321 m.ctrl.T.Helper() 322 ret := m.ctrl.Call(m, "Store", arg0, arg1) 323 ret0, _ := ret[0].(error) 324 return ret0 325 } 326 327 // Store indicates an expected call of Store. 328 func (mr *MockPayloadsMockRecorder) Store(arg0, arg1 interface{}) *gomock.Call { 329 mr.mock.ctrl.T.Helper() 330 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Store", reflect.TypeOf((*MockPayloads)(nil).Store), arg0, arg1) 331 } 332 333 // MockCollections is a mock of Collections interface. 334 type MockCollections struct { 335 ctrl *gomock.Controller 336 recorder *MockCollectionsMockRecorder 337 } 338 339 // MockCollectionsMockRecorder is the mock recorder for MockCollections. 340 type MockCollectionsMockRecorder struct { 341 mock *MockCollections 342 } 343 344 // NewMockCollections creates a new mock instance. 345 func NewMockCollections(ctrl *gomock.Controller) *MockCollections { 346 mock := &MockCollections{ctrl: ctrl} 347 mock.recorder = &MockCollectionsMockRecorder{mock} 348 return mock 349 } 350 351 // EXPECT returns an object that allows the caller to indicate expected use. 352 func (m *MockCollections) EXPECT() *MockCollectionsMockRecorder { 353 return m.recorder 354 } 355 356 // ByID mocks base method. 357 func (m *MockCollections) ByID(arg0 flow.Identifier) (*flow.Collection, error) { 358 m.ctrl.T.Helper() 359 ret := m.ctrl.Call(m, "ByID", arg0) 360 ret0, _ := ret[0].(*flow.Collection) 361 ret1, _ := ret[1].(error) 362 return ret0, ret1 363 } 364 365 // ByID indicates an expected call of ByID. 366 func (mr *MockCollectionsMockRecorder) ByID(arg0 interface{}) *gomock.Call { 367 mr.mock.ctrl.T.Helper() 368 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByID", reflect.TypeOf((*MockCollections)(nil).ByID), arg0) 369 } 370 371 // LightByID mocks base method. 372 func (m *MockCollections) LightByID(arg0 flow.Identifier) (*flow.LightCollection, error) { 373 m.ctrl.T.Helper() 374 ret := m.ctrl.Call(m, "LightByID", arg0) 375 ret0, _ := ret[0].(*flow.LightCollection) 376 ret1, _ := ret[1].(error) 377 return ret0, ret1 378 } 379 380 // LightByID indicates an expected call of LightByID. 381 func (mr *MockCollectionsMockRecorder) LightByID(arg0 interface{}) *gomock.Call { 382 mr.mock.ctrl.T.Helper() 383 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LightByID", reflect.TypeOf((*MockCollections)(nil).LightByID), arg0) 384 } 385 386 // LightByTransactionID mocks base method. 387 func (m *MockCollections) LightByTransactionID(arg0 flow.Identifier) (*flow.LightCollection, error) { 388 m.ctrl.T.Helper() 389 ret := m.ctrl.Call(m, "LightByTransactionID", arg0) 390 ret0, _ := ret[0].(*flow.LightCollection) 391 ret1, _ := ret[1].(error) 392 return ret0, ret1 393 } 394 395 // LightByTransactionID indicates an expected call of LightByTransactionID. 396 func (mr *MockCollectionsMockRecorder) LightByTransactionID(arg0 interface{}) *gomock.Call { 397 mr.mock.ctrl.T.Helper() 398 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LightByTransactionID", reflect.TypeOf((*MockCollections)(nil).LightByTransactionID), arg0) 399 } 400 401 // Remove mocks base method. 402 func (m *MockCollections) Remove(arg0 flow.Identifier) error { 403 m.ctrl.T.Helper() 404 ret := m.ctrl.Call(m, "Remove", arg0) 405 ret0, _ := ret[0].(error) 406 return ret0 407 } 408 409 // Remove indicates an expected call of Remove. 410 func (mr *MockCollectionsMockRecorder) Remove(arg0 interface{}) *gomock.Call { 411 mr.mock.ctrl.T.Helper() 412 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Remove", reflect.TypeOf((*MockCollections)(nil).Remove), arg0) 413 } 414 415 // Store mocks base method. 416 func (m *MockCollections) Store(arg0 *flow.Collection) error { 417 m.ctrl.T.Helper() 418 ret := m.ctrl.Call(m, "Store", arg0) 419 ret0, _ := ret[0].(error) 420 return ret0 421 } 422 423 // Store indicates an expected call of Store. 424 func (mr *MockCollectionsMockRecorder) Store(arg0 interface{}) *gomock.Call { 425 mr.mock.ctrl.T.Helper() 426 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Store", reflect.TypeOf((*MockCollections)(nil).Store), arg0) 427 } 428 429 // StoreLight mocks base method. 430 func (m *MockCollections) StoreLight(arg0 *flow.LightCollection) error { 431 m.ctrl.T.Helper() 432 ret := m.ctrl.Call(m, "StoreLight", arg0) 433 ret0, _ := ret[0].(error) 434 return ret0 435 } 436 437 // StoreLight indicates an expected call of StoreLight. 438 func (mr *MockCollectionsMockRecorder) StoreLight(arg0 interface{}) *gomock.Call { 439 mr.mock.ctrl.T.Helper() 440 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StoreLight", reflect.TypeOf((*MockCollections)(nil).StoreLight), arg0) 441 } 442 443 // StoreLightAndIndexByTransaction mocks base method. 444 func (m *MockCollections) StoreLightAndIndexByTransaction(arg0 *flow.LightCollection) error { 445 m.ctrl.T.Helper() 446 ret := m.ctrl.Call(m, "StoreLightAndIndexByTransaction", arg0) 447 ret0, _ := ret[0].(error) 448 return ret0 449 } 450 451 // StoreLightAndIndexByTransaction indicates an expected call of StoreLightAndIndexByTransaction. 452 func (mr *MockCollectionsMockRecorder) StoreLightAndIndexByTransaction(arg0 interface{}) *gomock.Call { 453 mr.mock.ctrl.T.Helper() 454 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StoreLightAndIndexByTransaction", reflect.TypeOf((*MockCollections)(nil).StoreLightAndIndexByTransaction), arg0) 455 } 456 457 // MockCommits is a mock of Commits interface. 458 type MockCommits struct { 459 ctrl *gomock.Controller 460 recorder *MockCommitsMockRecorder 461 } 462 463 // MockCommitsMockRecorder is the mock recorder for MockCommits. 464 type MockCommitsMockRecorder struct { 465 mock *MockCommits 466 } 467 468 // NewMockCommits creates a new mock instance. 469 func NewMockCommits(ctrl *gomock.Controller) *MockCommits { 470 mock := &MockCommits{ctrl: ctrl} 471 mock.recorder = &MockCommitsMockRecorder{mock} 472 return mock 473 } 474 475 // EXPECT returns an object that allows the caller to indicate expected use. 476 func (m *MockCommits) EXPECT() *MockCommitsMockRecorder { 477 return m.recorder 478 } 479 480 // BatchRemoveByBlockID mocks base method. 481 func (m *MockCommits) BatchRemoveByBlockID(arg0 flow.Identifier, arg1 storage.BatchStorage) error { 482 m.ctrl.T.Helper() 483 ret := m.ctrl.Call(m, "BatchRemoveByBlockID", arg0, arg1) 484 ret0, _ := ret[0].(error) 485 return ret0 486 } 487 488 // BatchRemoveByBlockID indicates an expected call of BatchRemoveByBlockID. 489 func (mr *MockCommitsMockRecorder) BatchRemoveByBlockID(arg0, arg1 interface{}) *gomock.Call { 490 mr.mock.ctrl.T.Helper() 491 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchRemoveByBlockID", reflect.TypeOf((*MockCommits)(nil).BatchRemoveByBlockID), arg0, arg1) 492 } 493 494 // BatchStore mocks base method. 495 func (m *MockCommits) BatchStore(arg0 flow.Identifier, arg1 flow.StateCommitment, arg2 storage.BatchStorage) error { 496 m.ctrl.T.Helper() 497 ret := m.ctrl.Call(m, "BatchStore", arg0, arg1, arg2) 498 ret0, _ := ret[0].(error) 499 return ret0 500 } 501 502 // BatchStore indicates an expected call of BatchStore. 503 func (mr *MockCommitsMockRecorder) BatchStore(arg0, arg1, arg2 interface{}) *gomock.Call { 504 mr.mock.ctrl.T.Helper() 505 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchStore", reflect.TypeOf((*MockCommits)(nil).BatchStore), arg0, arg1, arg2) 506 } 507 508 // ByBlockID mocks base method. 509 func (m *MockCommits) ByBlockID(arg0 flow.Identifier) (flow.StateCommitment, error) { 510 m.ctrl.T.Helper() 511 ret := m.ctrl.Call(m, "ByBlockID", arg0) 512 ret0, _ := ret[0].(flow.StateCommitment) 513 ret1, _ := ret[1].(error) 514 return ret0, ret1 515 } 516 517 // ByBlockID indicates an expected call of ByBlockID. 518 func (mr *MockCommitsMockRecorder) ByBlockID(arg0 interface{}) *gomock.Call { 519 mr.mock.ctrl.T.Helper() 520 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByBlockID", reflect.TypeOf((*MockCommits)(nil).ByBlockID), arg0) 521 } 522 523 // Store mocks base method. 524 func (m *MockCommits) Store(arg0 flow.Identifier, arg1 flow.StateCommitment) error { 525 m.ctrl.T.Helper() 526 ret := m.ctrl.Call(m, "Store", arg0, arg1) 527 ret0, _ := ret[0].(error) 528 return ret0 529 } 530 531 // Store indicates an expected call of Store. 532 func (mr *MockCommitsMockRecorder) Store(arg0, arg1 interface{}) *gomock.Call { 533 mr.mock.ctrl.T.Helper() 534 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Store", reflect.TypeOf((*MockCommits)(nil).Store), arg0, arg1) 535 } 536 537 // MockEvents is a mock of Events interface. 538 type MockEvents struct { 539 ctrl *gomock.Controller 540 recorder *MockEventsMockRecorder 541 } 542 543 // MockEventsMockRecorder is the mock recorder for MockEvents. 544 type MockEventsMockRecorder struct { 545 mock *MockEvents 546 } 547 548 // NewMockEvents creates a new mock instance. 549 func NewMockEvents(ctrl *gomock.Controller) *MockEvents { 550 mock := &MockEvents{ctrl: ctrl} 551 mock.recorder = &MockEventsMockRecorder{mock} 552 return mock 553 } 554 555 // EXPECT returns an object that allows the caller to indicate expected use. 556 func (m *MockEvents) EXPECT() *MockEventsMockRecorder { 557 return m.recorder 558 } 559 560 // BatchRemoveByBlockID mocks base method. 561 func (m *MockEvents) BatchRemoveByBlockID(arg0 flow.Identifier, arg1 storage.BatchStorage) error { 562 m.ctrl.T.Helper() 563 ret := m.ctrl.Call(m, "BatchRemoveByBlockID", arg0, arg1) 564 ret0, _ := ret[0].(error) 565 return ret0 566 } 567 568 // BatchRemoveByBlockID indicates an expected call of BatchRemoveByBlockID. 569 func (mr *MockEventsMockRecorder) BatchRemoveByBlockID(arg0, arg1 interface{}) *gomock.Call { 570 mr.mock.ctrl.T.Helper() 571 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchRemoveByBlockID", reflect.TypeOf((*MockEvents)(nil).BatchRemoveByBlockID), arg0, arg1) 572 } 573 574 // BatchStore mocks base method. 575 func (m *MockEvents) BatchStore(arg0 flow.Identifier, arg1 []flow.EventsList, arg2 storage.BatchStorage) error { 576 m.ctrl.T.Helper() 577 ret := m.ctrl.Call(m, "BatchStore", arg0, arg1, arg2) 578 ret0, _ := ret[0].(error) 579 return ret0 580 } 581 582 // BatchStore indicates an expected call of BatchStore. 583 func (mr *MockEventsMockRecorder) BatchStore(arg0, arg1, arg2 interface{}) *gomock.Call { 584 mr.mock.ctrl.T.Helper() 585 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchStore", reflect.TypeOf((*MockEvents)(nil).BatchStore), arg0, arg1, arg2) 586 } 587 588 // ByBlockID mocks base method. 589 func (m *MockEvents) ByBlockID(arg0 flow.Identifier) ([]flow.Event, error) { 590 m.ctrl.T.Helper() 591 ret := m.ctrl.Call(m, "ByBlockID", arg0) 592 ret0, _ := ret[0].([]flow.Event) 593 ret1, _ := ret[1].(error) 594 return ret0, ret1 595 } 596 597 // ByBlockID indicates an expected call of ByBlockID. 598 func (mr *MockEventsMockRecorder) ByBlockID(arg0 interface{}) *gomock.Call { 599 mr.mock.ctrl.T.Helper() 600 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByBlockID", reflect.TypeOf((*MockEvents)(nil).ByBlockID), arg0) 601 } 602 603 // ByBlockIDEventType mocks base method. 604 func (m *MockEvents) ByBlockIDEventType(arg0 flow.Identifier, arg1 flow.EventType) ([]flow.Event, error) { 605 m.ctrl.T.Helper() 606 ret := m.ctrl.Call(m, "ByBlockIDEventType", arg0, arg1) 607 ret0, _ := ret[0].([]flow.Event) 608 ret1, _ := ret[1].(error) 609 return ret0, ret1 610 } 611 612 // ByBlockIDEventType indicates an expected call of ByBlockIDEventType. 613 func (mr *MockEventsMockRecorder) ByBlockIDEventType(arg0, arg1 interface{}) *gomock.Call { 614 mr.mock.ctrl.T.Helper() 615 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByBlockIDEventType", reflect.TypeOf((*MockEvents)(nil).ByBlockIDEventType), arg0, arg1) 616 } 617 618 // ByBlockIDTransactionID mocks base method. 619 func (m *MockEvents) ByBlockIDTransactionID(arg0, arg1 flow.Identifier) ([]flow.Event, error) { 620 m.ctrl.T.Helper() 621 ret := m.ctrl.Call(m, "ByBlockIDTransactionID", arg0, arg1) 622 ret0, _ := ret[0].([]flow.Event) 623 ret1, _ := ret[1].(error) 624 return ret0, ret1 625 } 626 627 // ByBlockIDTransactionID indicates an expected call of ByBlockIDTransactionID. 628 func (mr *MockEventsMockRecorder) ByBlockIDTransactionID(arg0, arg1 interface{}) *gomock.Call { 629 mr.mock.ctrl.T.Helper() 630 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByBlockIDTransactionID", reflect.TypeOf((*MockEvents)(nil).ByBlockIDTransactionID), arg0, arg1) 631 } 632 633 // ByBlockIDTransactionIndex mocks base method. 634 func (m *MockEvents) ByBlockIDTransactionIndex(arg0 flow.Identifier, arg1 uint32) ([]flow.Event, error) { 635 m.ctrl.T.Helper() 636 ret := m.ctrl.Call(m, "ByBlockIDTransactionIndex", arg0, arg1) 637 ret0, _ := ret[0].([]flow.Event) 638 ret1, _ := ret[1].(error) 639 return ret0, ret1 640 } 641 642 // ByBlockIDTransactionIndex indicates an expected call of ByBlockIDTransactionIndex. 643 func (mr *MockEventsMockRecorder) ByBlockIDTransactionIndex(arg0, arg1 interface{}) *gomock.Call { 644 mr.mock.ctrl.T.Helper() 645 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByBlockIDTransactionIndex", reflect.TypeOf((*MockEvents)(nil).ByBlockIDTransactionIndex), arg0, arg1) 646 } 647 648 // Store mocks base method. 649 func (m *MockEvents) Store(arg0 flow.Identifier, arg1 []flow.EventsList) error { 650 m.ctrl.T.Helper() 651 ret := m.ctrl.Call(m, "Store", arg0, arg1) 652 ret0, _ := ret[0].(error) 653 return ret0 654 } 655 656 // Store indicates an expected call of Store. 657 func (mr *MockEventsMockRecorder) Store(arg0, arg1 interface{}) *gomock.Call { 658 mr.mock.ctrl.T.Helper() 659 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Store", reflect.TypeOf((*MockEvents)(nil).Store), arg0, arg1) 660 } 661 662 // MockServiceEvents is a mock of ServiceEvents interface. 663 type MockServiceEvents struct { 664 ctrl *gomock.Controller 665 recorder *MockServiceEventsMockRecorder 666 } 667 668 // MockServiceEventsMockRecorder is the mock recorder for MockServiceEvents. 669 type MockServiceEventsMockRecorder struct { 670 mock *MockServiceEvents 671 } 672 673 // NewMockServiceEvents creates a new mock instance. 674 func NewMockServiceEvents(ctrl *gomock.Controller) *MockServiceEvents { 675 mock := &MockServiceEvents{ctrl: ctrl} 676 mock.recorder = &MockServiceEventsMockRecorder{mock} 677 return mock 678 } 679 680 // EXPECT returns an object that allows the caller to indicate expected use. 681 func (m *MockServiceEvents) EXPECT() *MockServiceEventsMockRecorder { 682 return m.recorder 683 } 684 685 // BatchRemoveByBlockID mocks base method. 686 func (m *MockServiceEvents) BatchRemoveByBlockID(arg0 flow.Identifier, arg1 storage.BatchStorage) error { 687 m.ctrl.T.Helper() 688 ret := m.ctrl.Call(m, "BatchRemoveByBlockID", arg0, arg1) 689 ret0, _ := ret[0].(error) 690 return ret0 691 } 692 693 // BatchRemoveByBlockID indicates an expected call of BatchRemoveByBlockID. 694 func (mr *MockServiceEventsMockRecorder) BatchRemoveByBlockID(arg0, arg1 interface{}) *gomock.Call { 695 mr.mock.ctrl.T.Helper() 696 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchRemoveByBlockID", reflect.TypeOf((*MockServiceEvents)(nil).BatchRemoveByBlockID), arg0, arg1) 697 } 698 699 // BatchStore mocks base method. 700 func (m *MockServiceEvents) BatchStore(arg0 flow.Identifier, arg1 []flow.Event, arg2 storage.BatchStorage) error { 701 m.ctrl.T.Helper() 702 ret := m.ctrl.Call(m, "BatchStore", arg0, arg1, arg2) 703 ret0, _ := ret[0].(error) 704 return ret0 705 } 706 707 // BatchStore indicates an expected call of BatchStore. 708 func (mr *MockServiceEventsMockRecorder) BatchStore(arg0, arg1, arg2 interface{}) *gomock.Call { 709 mr.mock.ctrl.T.Helper() 710 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchStore", reflect.TypeOf((*MockServiceEvents)(nil).BatchStore), arg0, arg1, arg2) 711 } 712 713 // ByBlockID mocks base method. 714 func (m *MockServiceEvents) ByBlockID(arg0 flow.Identifier) ([]flow.Event, error) { 715 m.ctrl.T.Helper() 716 ret := m.ctrl.Call(m, "ByBlockID", arg0) 717 ret0, _ := ret[0].([]flow.Event) 718 ret1, _ := ret[1].(error) 719 return ret0, ret1 720 } 721 722 // ByBlockID indicates an expected call of ByBlockID. 723 func (mr *MockServiceEventsMockRecorder) ByBlockID(arg0 interface{}) *gomock.Call { 724 mr.mock.ctrl.T.Helper() 725 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByBlockID", reflect.TypeOf((*MockServiceEvents)(nil).ByBlockID), arg0) 726 } 727 728 // MockTransactionResults is a mock of TransactionResults interface. 729 type MockTransactionResults struct { 730 ctrl *gomock.Controller 731 recorder *MockTransactionResultsMockRecorder 732 } 733 734 // MockTransactionResultsMockRecorder is the mock recorder for MockTransactionResults. 735 type MockTransactionResultsMockRecorder struct { 736 mock *MockTransactionResults 737 } 738 739 // NewMockTransactionResults creates a new mock instance. 740 func NewMockTransactionResults(ctrl *gomock.Controller) *MockTransactionResults { 741 mock := &MockTransactionResults{ctrl: ctrl} 742 mock.recorder = &MockTransactionResultsMockRecorder{mock} 743 return mock 744 } 745 746 // EXPECT returns an object that allows the caller to indicate expected use. 747 func (m *MockTransactionResults) EXPECT() *MockTransactionResultsMockRecorder { 748 return m.recorder 749 } 750 751 // BatchStore mocks base method. 752 func (m *MockTransactionResults) BatchStore(arg0 flow.Identifier, arg1 []flow.TransactionResult, arg2 storage.BatchStorage) error { 753 m.ctrl.T.Helper() 754 ret := m.ctrl.Call(m, "BatchStore", arg0, arg1, arg2) 755 ret0, _ := ret[0].(error) 756 return ret0 757 } 758 759 // BatchStore indicates an expected call of BatchStore. 760 func (mr *MockTransactionResultsMockRecorder) BatchStore(arg0, arg1, arg2 interface{}) *gomock.Call { 761 mr.mock.ctrl.T.Helper() 762 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchStore", reflect.TypeOf((*MockTransactionResults)(nil).BatchStore), arg0, arg1, arg2) 763 } 764 765 // ByBlockID mocks base method. 766 func (m *MockTransactionResults) ByBlockID(arg0 flow.Identifier) ([]flow.TransactionResult, error) { 767 m.ctrl.T.Helper() 768 ret := m.ctrl.Call(m, "ByBlockID", arg0) 769 ret0, _ := ret[0].([]flow.TransactionResult) 770 ret1, _ := ret[1].(error) 771 return ret0, ret1 772 } 773 774 // ByBlockID indicates an expected call of ByBlockID. 775 func (mr *MockTransactionResultsMockRecorder) ByBlockID(arg0 interface{}) *gomock.Call { 776 mr.mock.ctrl.T.Helper() 777 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByBlockID", reflect.TypeOf((*MockTransactionResults)(nil).ByBlockID), arg0) 778 } 779 780 // ByBlockIDTransactionID mocks base method. 781 func (m *MockTransactionResults) ByBlockIDTransactionID(arg0, arg1 flow.Identifier) (*flow.TransactionResult, error) { 782 m.ctrl.T.Helper() 783 ret := m.ctrl.Call(m, "ByBlockIDTransactionID", arg0, arg1) 784 ret0, _ := ret[0].(*flow.TransactionResult) 785 ret1, _ := ret[1].(error) 786 return ret0, ret1 787 } 788 789 // ByBlockIDTransactionID indicates an expected call of ByBlockIDTransactionID. 790 func (mr *MockTransactionResultsMockRecorder) ByBlockIDTransactionID(arg0, arg1 interface{}) *gomock.Call { 791 mr.mock.ctrl.T.Helper() 792 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByBlockIDTransactionID", reflect.TypeOf((*MockTransactionResults)(nil).ByBlockIDTransactionID), arg0, arg1) 793 } 794 795 // ByBlockIDTransactionIndex mocks base method. 796 func (m *MockTransactionResults) ByBlockIDTransactionIndex(arg0 flow.Identifier, arg1 uint32) (*flow.TransactionResult, error) { 797 m.ctrl.T.Helper() 798 ret := m.ctrl.Call(m, "ByBlockIDTransactionIndex", arg0, arg1) 799 ret0, _ := ret[0].(*flow.TransactionResult) 800 ret1, _ := ret[1].(error) 801 return ret0, ret1 802 } 803 804 // ByBlockIDTransactionIndex indicates an expected call of ByBlockIDTransactionIndex. 805 func (mr *MockTransactionResultsMockRecorder) ByBlockIDTransactionIndex(arg0, arg1 interface{}) *gomock.Call { 806 mr.mock.ctrl.T.Helper() 807 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByBlockIDTransactionIndex", reflect.TypeOf((*MockTransactionResults)(nil).ByBlockIDTransactionIndex), arg0, arg1) 808 }