github.com/koko1123/flow-go-1@v0.29.6/module/mock/hot_stuff_follower.go (about) 1 // Code generated by mockery v2.13.1. DO NOT EDIT. 2 3 package mock 4 5 import ( 6 flow "github.com/koko1123/flow-go-1/model/flow" 7 mock "github.com/stretchr/testify/mock" 8 ) 9 10 // HotStuffFollower is an autogenerated mock type for the HotStuffFollower type 11 type HotStuffFollower struct { 12 mock.Mock 13 } 14 15 // Done provides a mock function with given fields: 16 func (_m *HotStuffFollower) Done() <-chan struct{} { 17 ret := _m.Called() 18 19 var r0 <-chan struct{} 20 if rf, ok := ret.Get(0).(func() <-chan struct{}); ok { 21 r0 = rf() 22 } else { 23 if ret.Get(0) != nil { 24 r0 = ret.Get(0).(<-chan struct{}) 25 } 26 } 27 28 return r0 29 } 30 31 // Ready provides a mock function with given fields: 32 func (_m *HotStuffFollower) Ready() <-chan struct{} { 33 ret := _m.Called() 34 35 var r0 <-chan struct{} 36 if rf, ok := ret.Get(0).(func() <-chan struct{}); ok { 37 r0 = rf() 38 } else { 39 if ret.Get(0) != nil { 40 r0 = ret.Get(0).(<-chan struct{}) 41 } 42 } 43 44 return r0 45 } 46 47 // SubmitProposal provides a mock function with given fields: proposal, parentView 48 func (_m *HotStuffFollower) SubmitProposal(proposal *flow.Header, parentView uint64) <-chan struct{} { 49 ret := _m.Called(proposal, parentView) 50 51 var r0 <-chan struct{} 52 if rf, ok := ret.Get(0).(func(*flow.Header, uint64) <-chan struct{}); ok { 53 r0 = rf(proposal, parentView) 54 } else { 55 if ret.Get(0) != nil { 56 r0 = ret.Get(0).(<-chan struct{}) 57 } 58 } 59 60 return r0 61 } 62 63 type mockConstructorTestingTNewHotStuffFollower interface { 64 mock.TestingT 65 Cleanup(func()) 66 } 67 68 // NewHotStuffFollower creates a new instance of HotStuffFollower. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 69 func NewHotStuffFollower(t mockConstructorTestingTNewHotStuffFollower) *HotStuffFollower { 70 mock := &HotStuffFollower{} 71 mock.Mock.Test(t) 72 73 t.Cleanup(func() { mock.AssertExpectations(t) }) 74 75 return mock 76 }