github.com/koko1123/flow-go-1@v0.29.6/consensus/hotstuff/mocks/vote_collector_state.go (about) 1 // Code generated by mockery v1.0.0. 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 // VoteCollectorState is an autogenerated mock type for the VoteCollectorState type 13 type VoteCollectorState struct { 14 mock.Mock 15 } 16 17 // AddVote provides a mock function with given fields: vote 18 func (_m *VoteCollectorState) AddVote(vote *model.Vote) error { 19 ret := _m.Called(vote) 20 21 var r0 error 22 if rf, ok := ret.Get(0).(func(*model.Vote) error); ok { 23 r0 = rf(vote) 24 } else { 25 r0 = ret.Error(0) 26 } 27 28 return r0 29 } 30 31 // Status provides a mock function with given fields: 32 func (_m *VoteCollectorState) Status() hotstuff.VoteCollectorStatus { 33 ret := _m.Called() 34 35 var r0 hotstuff.VoteCollectorStatus 36 if rf, ok := ret.Get(0).(func() hotstuff.VoteCollectorStatus); ok { 37 r0 = rf() 38 } else { 39 r0 = ret.Get(0).(hotstuff.VoteCollectorStatus) 40 } 41 42 return r0 43 } 44 45 // View provides a mock function with given fields: 46 func (_m *VoteCollectorState) View() uint64 { 47 ret := _m.Called() 48 49 var r0 uint64 50 if rf, ok := ret.Get(0).(func() uint64); ok { 51 r0 = rf() 52 } else { 53 r0 = ret.Get(0).(uint64) 54 } 55 56 return r0 57 }