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