Documentation ¶
Overview ¶
Package mock_consensus is a generated GoMock package.
Index ¶
- type MockConsensus
- func (m *MockConsensus) EXPECT() *MockConsensusMockRecorder
- func (m *MockConsensus) HandleBlockPropose(arg0 *proto.ProposePb) error
- func (m *MockConsensus) HandleEndorse(arg0 *proto.EndorsePb) 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 interface{}) *gomock.Call
- func (mr *MockConsensusMockRecorder) HandleEndorse(arg0 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.ProposePb) error
HandleBlockPropose mocks base method
func (*MockConsensus) HandleEndorse ¶ added in v0.4.0
func (m *MockConsensus) HandleEndorse(arg0 *proto.EndorsePb) error
HandleEndorse 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 interface{}) *gomock.Call
HandleBlockPropose indicates an expected call of HandleBlockPropose
func (*MockConsensusMockRecorder) HandleEndorse ¶ added in v0.4.0
func (mr *MockConsensusMockRecorder) HandleEndorse(arg0 interface{}) *gomock.Call
HandleEndorse indicates an expected call of HandleEndorse
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