github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/state/protocol/mock/params.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 10 // Params is an autogenerated mock type for the Params type 11 type Params struct { 12 mock.Mock 13 } 14 15 // ChainID provides a mock function with given fields: 16 func (_m *Params) ChainID() flow.ChainID { 17 ret := _m.Called() 18 19 var r0 flow.ChainID 20 if rf, ok := ret.Get(0).(func() flow.ChainID); ok { 21 r0 = rf() 22 } else { 23 r0 = ret.Get(0).(flow.ChainID) 24 } 25 26 return r0 27 } 28 29 // EpochCommitSafetyThreshold provides a mock function with given fields: 30 func (_m *Params) EpochCommitSafetyThreshold() uint64 { 31 ret := _m.Called() 32 33 var r0 uint64 34 if rf, ok := ret.Get(0).(func() uint64); ok { 35 r0 = rf() 36 } else { 37 r0 = ret.Get(0).(uint64) 38 } 39 40 return r0 41 } 42 43 // EpochFallbackTriggered provides a mock function with given fields: 44 func (_m *Params) EpochFallbackTriggered() (bool, error) { 45 ret := _m.Called() 46 47 var r0 bool 48 var r1 error 49 if rf, ok := ret.Get(0).(func() (bool, error)); ok { 50 return rf() 51 } 52 if rf, ok := ret.Get(0).(func() bool); ok { 53 r0 = rf() 54 } else { 55 r0 = ret.Get(0).(bool) 56 } 57 58 if rf, ok := ret.Get(1).(func() error); ok { 59 r1 = rf() 60 } else { 61 r1 = ret.Error(1) 62 } 63 64 return r0, r1 65 } 66 67 // FinalizedRoot provides a mock function with given fields: 68 func (_m *Params) FinalizedRoot() *flow.Header { 69 ret := _m.Called() 70 71 var r0 *flow.Header 72 if rf, ok := ret.Get(0).(func() *flow.Header); ok { 73 r0 = rf() 74 } else { 75 if ret.Get(0) != nil { 76 r0 = ret.Get(0).(*flow.Header) 77 } 78 } 79 80 return r0 81 } 82 83 // ProtocolVersion provides a mock function with given fields: 84 func (_m *Params) ProtocolVersion() uint { 85 ret := _m.Called() 86 87 var r0 uint 88 if rf, ok := ret.Get(0).(func() uint); ok { 89 r0 = rf() 90 } else { 91 r0 = ret.Get(0).(uint) 92 } 93 94 return r0 95 } 96 97 // Seal provides a mock function with given fields: 98 func (_m *Params) Seal() *flow.Seal { 99 ret := _m.Called() 100 101 var r0 *flow.Seal 102 if rf, ok := ret.Get(0).(func() *flow.Seal); ok { 103 r0 = rf() 104 } else { 105 if ret.Get(0) != nil { 106 r0 = ret.Get(0).(*flow.Seal) 107 } 108 } 109 110 return r0 111 } 112 113 // SealedRoot provides a mock function with given fields: 114 func (_m *Params) SealedRoot() *flow.Header { 115 ret := _m.Called() 116 117 var r0 *flow.Header 118 if rf, ok := ret.Get(0).(func() *flow.Header); ok { 119 r0 = rf() 120 } else { 121 if ret.Get(0) != nil { 122 r0 = ret.Get(0).(*flow.Header) 123 } 124 } 125 126 return r0 127 } 128 129 // SporkID provides a mock function with given fields: 130 func (_m *Params) SporkID() flow.Identifier { 131 ret := _m.Called() 132 133 var r0 flow.Identifier 134 if rf, ok := ret.Get(0).(func() flow.Identifier); ok { 135 r0 = rf() 136 } else { 137 if ret.Get(0) != nil { 138 r0 = ret.Get(0).(flow.Identifier) 139 } 140 } 141 142 return r0 143 } 144 145 // SporkRootBlockHeight provides a mock function with given fields: 146 func (_m *Params) SporkRootBlockHeight() uint64 { 147 ret := _m.Called() 148 149 var r0 uint64 150 if rf, ok := ret.Get(0).(func() uint64); ok { 151 r0 = rf() 152 } else { 153 r0 = ret.Get(0).(uint64) 154 } 155 156 return r0 157 } 158 159 type mockConstructorTestingTNewParams interface { 160 mock.TestingT 161 Cleanup(func()) 162 } 163 164 // NewParams creates a new instance of Params. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 165 func NewParams(t mockConstructorTestingTNewParams) *Params { 166 mock := &Params{} 167 mock.Mock.Test(t) 168 169 t.Cleanup(func() { mock.AssertExpectations(t) }) 170 171 return mock 172 }