github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/storage/mock/execution_receipts.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mock 4 5 import ( 6 flow "github.com/onflow/flow-go/model/flow" 7 mock "github.com/stretchr/testify/mock" 8 9 storage "github.com/onflow/flow-go/storage" 10 ) 11 12 // ExecutionReceipts is an autogenerated mock type for the ExecutionReceipts type 13 type ExecutionReceipts struct { 14 mock.Mock 15 } 16 17 // BatchStore provides a mock function with given fields: receipt, batch 18 func (_m *ExecutionReceipts) BatchStore(receipt *flow.ExecutionReceipt, batch storage.BatchStorage) error { 19 ret := _m.Called(receipt, batch) 20 21 var r0 error 22 if rf, ok := ret.Get(0).(func(*flow.ExecutionReceipt, storage.BatchStorage) error); ok { 23 r0 = rf(receipt, batch) 24 } else { 25 r0 = ret.Error(0) 26 } 27 28 return r0 29 } 30 31 // ByBlockID provides a mock function with given fields: blockID 32 func (_m *ExecutionReceipts) ByBlockID(blockID flow.Identifier) (flow.ExecutionReceiptList, error) { 33 ret := _m.Called(blockID) 34 35 var r0 flow.ExecutionReceiptList 36 var r1 error 37 if rf, ok := ret.Get(0).(func(flow.Identifier) (flow.ExecutionReceiptList, error)); ok { 38 return rf(blockID) 39 } 40 if rf, ok := ret.Get(0).(func(flow.Identifier) flow.ExecutionReceiptList); ok { 41 r0 = rf(blockID) 42 } else { 43 if ret.Get(0) != nil { 44 r0 = ret.Get(0).(flow.ExecutionReceiptList) 45 } 46 } 47 48 if rf, ok := ret.Get(1).(func(flow.Identifier) error); ok { 49 r1 = rf(blockID) 50 } else { 51 r1 = ret.Error(1) 52 } 53 54 return r0, r1 55 } 56 57 // ByID provides a mock function with given fields: receiptID 58 func (_m *ExecutionReceipts) ByID(receiptID flow.Identifier) (*flow.ExecutionReceipt, error) { 59 ret := _m.Called(receiptID) 60 61 var r0 *flow.ExecutionReceipt 62 var r1 error 63 if rf, ok := ret.Get(0).(func(flow.Identifier) (*flow.ExecutionReceipt, error)); ok { 64 return rf(receiptID) 65 } 66 if rf, ok := ret.Get(0).(func(flow.Identifier) *flow.ExecutionReceipt); ok { 67 r0 = rf(receiptID) 68 } else { 69 if ret.Get(0) != nil { 70 r0 = ret.Get(0).(*flow.ExecutionReceipt) 71 } 72 } 73 74 if rf, ok := ret.Get(1).(func(flow.Identifier) error); ok { 75 r1 = rf(receiptID) 76 } else { 77 r1 = ret.Error(1) 78 } 79 80 return r0, r1 81 } 82 83 // Store provides a mock function with given fields: receipt 84 func (_m *ExecutionReceipts) Store(receipt *flow.ExecutionReceipt) error { 85 ret := _m.Called(receipt) 86 87 var r0 error 88 if rf, ok := ret.Get(0).(func(*flow.ExecutionReceipt) error); ok { 89 r0 = rf(receipt) 90 } else { 91 r0 = ret.Error(0) 92 } 93 94 return r0 95 } 96 97 type mockConstructorTestingTNewExecutionReceipts interface { 98 mock.TestingT 99 Cleanup(func()) 100 } 101 102 // NewExecutionReceipts creates a new instance of ExecutionReceipts. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 103 func NewExecutionReceipts(t mockConstructorTestingTNewExecutionReceipts) *ExecutionReceipts { 104 mock := &ExecutionReceipts{} 105 mock.Mock.Test(t) 106 107 t.Cleanup(func() { mock.AssertExpectations(t) }) 108 109 return mock 110 }