Documentation ¶
Overview ¶
Package mock_consensus is a generated GoMock package.
Index ¶
- type MockConsensus
- func (m *MockConsensus) EXPECT() *MockConsensusMockRecorder
- func (m *MockConsensus) HandleBlockPropose(arg0 proto.Message, arg1 chan bool) error
- func (m *MockConsensus) HandleViewChange(arg0 proto.Message, arg1 chan bool) error
- func (m *MockConsensus) Metrics() (scheme.ConsensusMetrics, error)
- func (m *MockConsensus) Start(arg0 context.Context) error
- func (m *MockConsensus) Stop(arg0 context.Context) error
- type MockConsensusMockRecorder
- func (mr *MockConsensusMockRecorder) HandleBlockPropose(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockConsensusMockRecorder) HandleViewChange(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockConsensusMockRecorder) Metrics() *gomock.Call
- func (mr *MockConsensusMockRecorder) Start(arg0 interface{}) *gomock.Call
- func (mr *MockConsensusMockRecorder) Stop(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConsensus ¶
type MockConsensus struct {
// contains filtered or unexported fields
}
MockConsensus is a mock of Consensus interface
func NewMockConsensus ¶
func NewMockConsensus(ctrl *gomock.Controller) *MockConsensus
NewMockConsensus creates a new mock instance
func (*MockConsensus) EXPECT ¶
func (m *MockConsensus) EXPECT() *MockConsensusMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockConsensus) HandleBlockPropose ¶
func (m *MockConsensus) HandleBlockPropose(arg0 proto.Message, arg1 chan bool) error
HandleBlockPropose mocks base method
func (*MockConsensus) HandleViewChange ¶
func (m *MockConsensus) HandleViewChange(arg0 proto.Message, arg1 chan bool) error
HandleViewChange mocks base method
func (*MockConsensus) Metrics ¶
func (m *MockConsensus) Metrics() (scheme.ConsensusMetrics, error)
Metrics mocks base method
type MockConsensusMockRecorder ¶
type MockConsensusMockRecorder struct {
// contains filtered or unexported fields
}
MockConsensusMockRecorder is the mock recorder for MockConsensus
func (*MockConsensusMockRecorder) HandleBlockPropose ¶
func (mr *MockConsensusMockRecorder) HandleBlockPropose(arg0, arg1 interface{}) *gomock.Call
HandleBlockPropose indicates an expected call of HandleBlockPropose
func (*MockConsensusMockRecorder) HandleViewChange ¶
func (mr *MockConsensusMockRecorder) HandleViewChange(arg0, arg1 interface{}) *gomock.Call
HandleViewChange indicates an expected call of HandleViewChange
func (*MockConsensusMockRecorder) Metrics ¶
func (mr *MockConsensusMockRecorder) Metrics() *gomock.Call
Metrics indicates an expected call of Metrics
func (*MockConsensusMockRecorder) Start ¶
func (mr *MockConsensusMockRecorder) Start(arg0 interface{}) *gomock.Call
Start indicates an expected call of Start
func (*MockConsensusMockRecorder) Stop ¶
func (mr *MockConsensusMockRecorder) Stop(arg0 interface{}) *gomock.Call
Stop indicates an expected call of Stop