github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/state/protocol/mock/instance_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 // InstanceParams is an autogenerated mock type for the InstanceParams type 11 type InstanceParams struct { 12 mock.Mock 13 } 14 15 // EpochFallbackTriggered provides a mock function with given fields: 16 func (_m *InstanceParams) EpochFallbackTriggered() (bool, error) { 17 ret := _m.Called() 18 19 var r0 bool 20 var r1 error 21 if rf, ok := ret.Get(0).(func() (bool, error)); ok { 22 return rf() 23 } 24 if rf, ok := ret.Get(0).(func() bool); ok { 25 r0 = rf() 26 } else { 27 r0 = ret.Get(0).(bool) 28 } 29 30 if rf, ok := ret.Get(1).(func() error); ok { 31 r1 = rf() 32 } else { 33 r1 = ret.Error(1) 34 } 35 36 return r0, r1 37 } 38 39 // FinalizedRoot provides a mock function with given fields: 40 func (_m *InstanceParams) FinalizedRoot() *flow.Header { 41 ret := _m.Called() 42 43 var r0 *flow.Header 44 if rf, ok := ret.Get(0).(func() *flow.Header); ok { 45 r0 = rf() 46 } else { 47 if ret.Get(0) != nil { 48 r0 = ret.Get(0).(*flow.Header) 49 } 50 } 51 52 return r0 53 } 54 55 // Seal provides a mock function with given fields: 56 func (_m *InstanceParams) Seal() *flow.Seal { 57 ret := _m.Called() 58 59 var r0 *flow.Seal 60 if rf, ok := ret.Get(0).(func() *flow.Seal); ok { 61 r0 = rf() 62 } else { 63 if ret.Get(0) != nil { 64 r0 = ret.Get(0).(*flow.Seal) 65 } 66 } 67 68 return r0 69 } 70 71 // SealedRoot provides a mock function with given fields: 72 func (_m *InstanceParams) SealedRoot() *flow.Header { 73 ret := _m.Called() 74 75 var r0 *flow.Header 76 if rf, ok := ret.Get(0).(func() *flow.Header); ok { 77 r0 = rf() 78 } else { 79 if ret.Get(0) != nil { 80 r0 = ret.Get(0).(*flow.Header) 81 } 82 } 83 84 return r0 85 } 86 87 type mockConstructorTestingTNewInstanceParams interface { 88 mock.TestingT 89 Cleanup(func()) 90 } 91 92 // NewInstanceParams creates a new instance of InstanceParams. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 93 func NewInstanceParams(t mockConstructorTestingTNewInstanceParams) *InstanceParams { 94 mock := &InstanceParams{} 95 mock.Mock.Test(t) 96 97 t.Cleanup(func() { mock.AssertExpectations(t) }) 98 99 return mock 100 }