github.com/koko1123/flow-go-1@v0.29.6/storage/mock/execution_receipts.go (about) 1 // Code generated by mockery v2.13.1. DO NOT EDIT. 2 3 package mock 4 5 import ( 6 flow "github.com/koko1123/flow-go-1/model/flow" 7 mock "github.com/stretchr/testify/mock" 8 9 storage "github.com/koko1123/flow-go-1/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 if rf, ok := ret.Get(0).(func(flow.Identifier) flow.ExecutionReceiptList); ok { 37 r0 = rf(blockID) 38 } else { 39 if ret.Get(0) != nil { 40 r0 = ret.Get(0).(flow.ExecutionReceiptList) 41 } 42 } 43 44 var r1 error 45 if rf, ok := ret.Get(1).(func(flow.Identifier) error); ok { 46 r1 = rf(blockID) 47 } else { 48 r1 = ret.Error(1) 49 } 50 51 return r0, r1 52 } 53 54 // ByID provides a mock function with given fields: receiptID 55 func (_m *ExecutionReceipts) ByID(receiptID flow.Identifier) (*flow.ExecutionReceipt, error) { 56 ret := _m.Called(receiptID) 57 58 var r0 *flow.ExecutionReceipt 59 if rf, ok := ret.Get(0).(func(flow.Identifier) *flow.ExecutionReceipt); ok { 60 r0 = rf(receiptID) 61 } else { 62 if ret.Get(0) != nil { 63 r0 = ret.Get(0).(*flow.ExecutionReceipt) 64 } 65 } 66 67 var r1 error 68 if rf, ok := ret.Get(1).(func(flow.Identifier) error); ok { 69 r1 = rf(receiptID) 70 } else { 71 r1 = ret.Error(1) 72 } 73 74 return r0, r1 75 } 76 77 // Store provides a mock function with given fields: receipt 78 func (_m *ExecutionReceipts) Store(receipt *flow.ExecutionReceipt) error { 79 ret := _m.Called(receipt) 80 81 var r0 error 82 if rf, ok := ret.Get(0).(func(*flow.ExecutionReceipt) error); ok { 83 r0 = rf(receipt) 84 } else { 85 r0 = ret.Error(0) 86 } 87 88 return r0 89 } 90 91 type mockConstructorTestingTNewExecutionReceipts interface { 92 mock.TestingT 93 Cleanup(func()) 94 } 95 96 // 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. 97 func NewExecutionReceipts(t mockConstructorTestingTNewExecutionReceipts) *ExecutionReceipts { 98 mock := &ExecutionReceipts{} 99 mock.Mock.Test(t) 100 101 t.Cleanup(func() { mock.AssertExpectations(t) }) 102 103 return mock 104 }