iotex-core: github.com/iotexproject/iotex-core/test/mock/mock_consensus Index | Files

package mock_consensus

import "github.com/iotexproject/iotex-core/test/mock/mock_consensus"

Package mock_consensus is a generated GoMock package.

Index

Package Files

mock_consensus.go

type MockConsensus Uses

type MockConsensus struct {
    // contains filtered or unexported fields
}

MockConsensus is a mock of Consensus interface

func NewMockConsensus Uses

func NewMockConsensus(ctrl *gomock.Controller) *MockConsensus

NewMockConsensus creates a new mock instance

func (*MockConsensus) Activate Uses

func (m *MockConsensus) Activate(arg0 bool)

Activate mocks base method

func (*MockConsensus) Active Uses

func (m *MockConsensus) Active() bool

Active mocks base method

func (*MockConsensus) Calibrate Uses

func (m *MockConsensus) Calibrate(arg0 uint64)

Calibrate mocks base method

func (*MockConsensus) EXPECT Uses

func (m *MockConsensus) EXPECT() *MockConsensusMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockConsensus) HandleConsensusMsg Uses

func (m *MockConsensus) HandleConsensusMsg(arg0 *iotextypes.ConsensusMessage) error

HandleConsensusMsg mocks base method

func (*MockConsensus) Metrics Uses

func (m *MockConsensus) Metrics() (scheme.ConsensusMetrics, error)

Metrics mocks base method

func (*MockConsensus) Start Uses

func (m *MockConsensus) Start(arg0 context.Context) error

Start mocks base method

func (*MockConsensus) Stop Uses

func (m *MockConsensus) Stop(arg0 context.Context) error

Stop mocks base method

func (*MockConsensus) ValidateBlockFooter Uses

func (m *MockConsensus) ValidateBlockFooter(arg0 *block.Block) error

ValidateBlockFooter mocks base method

type MockConsensusMockRecorder Uses

type MockConsensusMockRecorder struct {
    // contains filtered or unexported fields
}

MockConsensusMockRecorder is the mock recorder for MockConsensus

func (*MockConsensusMockRecorder) Activate Uses

func (mr *MockConsensusMockRecorder) Activate(arg0 interface{}) *gomock.Call

Activate indicates an expected call of Activate

func (*MockConsensusMockRecorder) Active Uses

func (mr *MockConsensusMockRecorder) Active() *gomock.Call

Active indicates an expected call of Active

func (*MockConsensusMockRecorder) Calibrate Uses

func (mr *MockConsensusMockRecorder) Calibrate(arg0 interface{}) *gomock.Call

Calibrate indicates an expected call of Calibrate

func (*MockConsensusMockRecorder) HandleConsensusMsg Uses

func (mr *MockConsensusMockRecorder) HandleConsensusMsg(arg0 interface{}) *gomock.Call

HandleConsensusMsg indicates an expected call of HandleConsensusMsg

func (*MockConsensusMockRecorder) Metrics Uses

func (mr *MockConsensusMockRecorder) Metrics() *gomock.Call

Metrics indicates an expected call of Metrics

func (*MockConsensusMockRecorder) Start Uses

func (mr *MockConsensusMockRecorder) Start(arg0 interface{}) *gomock.Call

Start indicates an expected call of Start

func (*MockConsensusMockRecorder) Stop Uses

func (mr *MockConsensusMockRecorder) Stop(arg0 interface{}) *gomock.Call

Stop indicates an expected call of Stop

func (*MockConsensusMockRecorder) ValidateBlockFooter Uses

func (mr *MockConsensusMockRecorder) ValidateBlockFooter(arg0 interface{}) *gomock.Call

ValidateBlockFooter indicates an expected call of ValidateBlockFooter

Package mock_consensus imports 6 packages (graph). Updated 2019-11-21. Refresh now. Tools for package owners.