github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mempool/mock/execution_data.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mempool 4 5 import ( 6 flow "github.com/onflow/flow-go/model/flow" 7 execution_data "github.com/onflow/flow-go/module/executiondatasync/execution_data" 8 9 mock "github.com/stretchr/testify/mock" 10 ) 11 12 // ExecutionData is an autogenerated mock type for the ExecutionData type 13 type ExecutionData struct { 14 mock.Mock 15 } 16 17 // Add provides a mock function with given fields: _a0 18 func (_m *ExecutionData) Add(_a0 *execution_data.BlockExecutionDataEntity) bool { 19 ret := _m.Called(_a0) 20 21 var r0 bool 22 if rf, ok := ret.Get(0).(func(*execution_data.BlockExecutionDataEntity) bool); ok { 23 r0 = rf(_a0) 24 } else { 25 r0 = ret.Get(0).(bool) 26 } 27 28 return r0 29 } 30 31 // All provides a mock function with given fields: 32 func (_m *ExecutionData) All() []*execution_data.BlockExecutionDataEntity { 33 ret := _m.Called() 34 35 var r0 []*execution_data.BlockExecutionDataEntity 36 if rf, ok := ret.Get(0).(func() []*execution_data.BlockExecutionDataEntity); ok { 37 r0 = rf() 38 } else { 39 if ret.Get(0) != nil { 40 r0 = ret.Get(0).([]*execution_data.BlockExecutionDataEntity) 41 } 42 } 43 44 return r0 45 } 46 47 // ByID provides a mock function with given fields: _a0 48 func (_m *ExecutionData) ByID(_a0 flow.Identifier) (*execution_data.BlockExecutionDataEntity, bool) { 49 ret := _m.Called(_a0) 50 51 var r0 *execution_data.BlockExecutionDataEntity 52 var r1 bool 53 if rf, ok := ret.Get(0).(func(flow.Identifier) (*execution_data.BlockExecutionDataEntity, bool)); ok { 54 return rf(_a0) 55 } 56 if rf, ok := ret.Get(0).(func(flow.Identifier) *execution_data.BlockExecutionDataEntity); ok { 57 r0 = rf(_a0) 58 } else { 59 if ret.Get(0) != nil { 60 r0 = ret.Get(0).(*execution_data.BlockExecutionDataEntity) 61 } 62 } 63 64 if rf, ok := ret.Get(1).(func(flow.Identifier) bool); ok { 65 r1 = rf(_a0) 66 } else { 67 r1 = ret.Get(1).(bool) 68 } 69 70 return r0, r1 71 } 72 73 // Clear provides a mock function with given fields: 74 func (_m *ExecutionData) Clear() { 75 _m.Called() 76 } 77 78 // Has provides a mock function with given fields: _a0 79 func (_m *ExecutionData) Has(_a0 flow.Identifier) bool { 80 ret := _m.Called(_a0) 81 82 var r0 bool 83 if rf, ok := ret.Get(0).(func(flow.Identifier) bool); ok { 84 r0 = rf(_a0) 85 } else { 86 r0 = ret.Get(0).(bool) 87 } 88 89 return r0 90 } 91 92 // Remove provides a mock function with given fields: _a0 93 func (_m *ExecutionData) Remove(_a0 flow.Identifier) bool { 94 ret := _m.Called(_a0) 95 96 var r0 bool 97 if rf, ok := ret.Get(0).(func(flow.Identifier) bool); ok { 98 r0 = rf(_a0) 99 } else { 100 r0 = ret.Get(0).(bool) 101 } 102 103 return r0 104 } 105 106 // Size provides a mock function with given fields: 107 func (_m *ExecutionData) Size() uint { 108 ret := _m.Called() 109 110 var r0 uint 111 if rf, ok := ret.Get(0).(func() uint); ok { 112 r0 = rf() 113 } else { 114 r0 = ret.Get(0).(uint) 115 } 116 117 return r0 118 } 119 120 type mockConstructorTestingTNewExecutionData interface { 121 mock.TestingT 122 Cleanup(func()) 123 } 124 125 // NewExecutionData creates a new instance of ExecutionData. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 126 func NewExecutionData(t mockConstructorTestingTNewExecutionData) *ExecutionData { 127 mock := &ExecutionData{} 128 mock.Mock.Test(t) 129 130 t.Cleanup(func() { mock.AssertExpectations(t) }) 131 132 return mock 133 }