github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/state_synchronization/mock/execution_data_requester.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package state_synchronization 4 5 import ( 6 irrecoverable "github.com/onflow/flow-go/module/irrecoverable" 7 mock "github.com/stretchr/testify/mock" 8 9 model "github.com/onflow/flow-go/consensus/hotstuff/model" 10 ) 11 12 // ExecutionDataRequester is an autogenerated mock type for the ExecutionDataRequester type 13 type ExecutionDataRequester struct { 14 mock.Mock 15 } 16 17 // Done provides a mock function with given fields: 18 func (_m *ExecutionDataRequester) Done() <-chan struct{} { 19 ret := _m.Called() 20 21 var r0 <-chan struct{} 22 if rf, ok := ret.Get(0).(func() <-chan struct{}); ok { 23 r0 = rf() 24 } else { 25 if ret.Get(0) != nil { 26 r0 = ret.Get(0).(<-chan struct{}) 27 } 28 } 29 30 return r0 31 } 32 33 // HighestConsecutiveHeight provides a mock function with given fields: 34 func (_m *ExecutionDataRequester) HighestConsecutiveHeight() (uint64, error) { 35 ret := _m.Called() 36 37 var r0 uint64 38 var r1 error 39 if rf, ok := ret.Get(0).(func() (uint64, error)); ok { 40 return rf() 41 } 42 if rf, ok := ret.Get(0).(func() uint64); ok { 43 r0 = rf() 44 } else { 45 r0 = ret.Get(0).(uint64) 46 } 47 48 if rf, ok := ret.Get(1).(func() error); ok { 49 r1 = rf() 50 } else { 51 r1 = ret.Error(1) 52 } 53 54 return r0, r1 55 } 56 57 // OnBlockFinalized provides a mock function with given fields: _a0 58 func (_m *ExecutionDataRequester) OnBlockFinalized(_a0 *model.Block) { 59 _m.Called(_a0) 60 } 61 62 // Ready provides a mock function with given fields: 63 func (_m *ExecutionDataRequester) Ready() <-chan struct{} { 64 ret := _m.Called() 65 66 var r0 <-chan struct{} 67 if rf, ok := ret.Get(0).(func() <-chan struct{}); ok { 68 r0 = rf() 69 } else { 70 if ret.Get(0) != nil { 71 r0 = ret.Get(0).(<-chan struct{}) 72 } 73 } 74 75 return r0 76 } 77 78 // Start provides a mock function with given fields: _a0 79 func (_m *ExecutionDataRequester) Start(_a0 irrecoverable.SignalerContext) { 80 _m.Called(_a0) 81 } 82 83 type mockConstructorTestingTNewExecutionDataRequester interface { 84 mock.TestingT 85 Cleanup(func()) 86 } 87 88 // NewExecutionDataRequester creates a new instance of ExecutionDataRequester. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 89 func NewExecutionDataRequester(t mockConstructorTestingTNewExecutionDataRequester) *ExecutionDataRequester { 90 mock := &ExecutionDataRequester{} 91 mock.Mock.Test(t) 92 93 t.Cleanup(func() { mock.AssertExpectations(t) }) 94 95 return mock 96 }