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