mock_consensus

package
v1.4.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_consensus is a generated GoMock package.

Index

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) Activate added in v0.5.0

func (m *MockConsensus) Activate(arg0 bool)

Activate mocks base method

func (*MockConsensus) Active added in v0.5.0

func (m *MockConsensus) Active() bool

Active mocks base method

func (*MockConsensus) Calibrate added in v0.4.4

func (m *MockConsensus) Calibrate(arg0 uint64)

Calibrate mocks base method

func (*MockConsensus) EXPECT

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

func (*MockConsensus) HandleConsensusMsg added in v0.4.4

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

HandleConsensusMsg mocks base method

func (*MockConsensus) Metrics

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

Metrics mocks base method

func (*MockConsensus) Start

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

Start mocks base method

func (*MockConsensus) Stop

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

Stop mocks base method

func (*MockConsensus) ValidateBlockFooter added in v0.4.4

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

ValidateBlockFooter mocks base method

type MockConsensusMockRecorder

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

MockConsensusMockRecorder is the mock recorder for MockConsensus

func (*MockConsensusMockRecorder) Activate added in v0.5.0

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

Activate indicates an expected call of Activate

func (*MockConsensusMockRecorder) Active added in v0.5.0

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

Active indicates an expected call of Active

func (*MockConsensusMockRecorder) Calibrate added in v0.4.4

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

Calibrate indicates an expected call of Calibrate

func (*MockConsensusMockRecorder) HandleConsensusMsg added in v0.4.4

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

HandleConsensusMsg indicates an expected call of HandleConsensusMsg

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

func (*MockConsensusMockRecorder) ValidateBlockFooter added in v0.4.4

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

ValidateBlockFooter indicates an expected call of ValidateBlockFooter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL