mock_consensus

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2018 License: Apache-2.0 Imports: 5 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) EXPECT

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

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

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

Jump to

Keyboard shortcuts

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