mocks

package
v0.0.0-...-7cc9995 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAcceptor

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

MockAcceptor is a mock of Acceptor interface.

func NewMockAcceptor

func NewMockAcceptor(ctrl *gomock.Controller) *MockAcceptor

NewMockAcceptor creates a new mock instance.

func (*MockAcceptor) Accept

func (m *MockAcceptor) Accept(arg0 consbench.Command) bool

Accept mocks base method.

func (*MockAcceptor) EXPECT

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

func (*MockAcceptor) Proposed

func (m *MockAcceptor) Proposed(arg0 consbench.Command)

Proposed mocks base method.

type MockAcceptorMockRecorder

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

MockAcceptorMockRecorder is the mock recorder for MockAcceptor.

func (*MockAcceptorMockRecorder) Accept

func (mr *MockAcceptorMockRecorder) Accept(arg0 interface{}) *gomock.Call

Accept indicates an expected call of Accept.

func (*MockAcceptorMockRecorder) Proposed

func (mr *MockAcceptorMockRecorder) Proposed(arg0 interface{}) *gomock.Call

Proposed indicates an expected call of Proposed.

type MockCommandQueue

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

MockCommandQueue is a mock of CommandQueue interface.

func NewMockCommandQueue

func NewMockCommandQueue(ctrl *gomock.Controller) *MockCommandQueue

NewMockCommandQueue creates a new mock instance.

func (*MockCommandQueue) EXPECT

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

func (*MockCommandQueue) Get

func (m *MockCommandQueue) Get(arg0 context.Context) (consbench.Command, bool)

Get mocks base method.

type MockCommandQueueMockRecorder

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

MockCommandQueueMockRecorder is the mock recorder for MockCommandQueue.

func (*MockCommandQueueMockRecorder) Get

func (mr *MockCommandQueueMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

type MockConfiguration

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

MockConfiguration is a mock of Configuration interface.

func NewMockConfiguration

func NewMockConfiguration(ctrl *gomock.Controller) *MockConfiguration

NewMockConfiguration creates a new mock instance.

func (*MockConfiguration) EXPECT

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

func (*MockConfiguration) Fetch

func (m *MockConfiguration) Fetch(arg0 context.Context, arg1 consbench.Hash) (*consbench.Block, bool)

Fetch mocks base method.

func (*MockConfiguration) Len

func (m *MockConfiguration) Len() int

Len mocks base method.

func (*MockConfiguration) Propose

func (m *MockConfiguration) Propose(arg0 consbench.ProposeMsg)

Propose mocks base method.

func (*MockConfiguration) QuorumSize

func (m *MockConfiguration) QuorumSize() int

QuorumSize mocks base method.

func (*MockConfiguration) Replica

func (m *MockConfiguration) Replica(arg0 consbench.ID) (modules.Replica, bool)

Replica mocks base method.

func (*MockConfiguration) Replicas

func (m *MockConfiguration) Replicas() map[consbench.ID]modules.Replica

Replicas mocks base method.

func (*MockConfiguration) SubConfig

func (m *MockConfiguration) SubConfig(arg0 []consbench.ID) (modules.Configuration, error)

SubConfig mocks base method.

func (*MockConfiguration) Timeout

func (m *MockConfiguration) Timeout(arg0 consbench.TimeoutMsg)

Timeout mocks base method.

type MockConfigurationMockRecorder

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

MockConfigurationMockRecorder is the mock recorder for MockConfiguration.

func (*MockConfigurationMockRecorder) Fetch

func (mr *MockConfigurationMockRecorder) Fetch(arg0, arg1 interface{}) *gomock.Call

Fetch indicates an expected call of Fetch.

func (*MockConfigurationMockRecorder) Len

Len indicates an expected call of Len.

func (*MockConfigurationMockRecorder) Propose

func (mr *MockConfigurationMockRecorder) Propose(arg0 interface{}) *gomock.Call

Propose indicates an expected call of Propose.

func (*MockConfigurationMockRecorder) QuorumSize

func (mr *MockConfigurationMockRecorder) QuorumSize() *gomock.Call

QuorumSize indicates an expected call of QuorumSize.

func (*MockConfigurationMockRecorder) Replica

func (mr *MockConfigurationMockRecorder) Replica(arg0 interface{}) *gomock.Call

Replica indicates an expected call of Replica.

func (*MockConfigurationMockRecorder) Replicas

func (mr *MockConfigurationMockRecorder) Replicas() *gomock.Call

Replicas indicates an expected call of Replicas.

func (*MockConfigurationMockRecorder) SubConfig

func (mr *MockConfigurationMockRecorder) SubConfig(arg0 interface{}) *gomock.Call

SubConfig indicates an expected call of SubConfig.

func (*MockConfigurationMockRecorder) Timeout

func (mr *MockConfigurationMockRecorder) Timeout(arg0 interface{}) *gomock.Call

Timeout indicates an expected call of Timeout.

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) ChainLength

func (m *MockConsensus) ChainLength() int

ChainLength mocks base method.

func (*MockConsensus) CommittedBlock

func (m *MockConsensus) CommittedBlock() *consbench.Block

CommittedBlock mocks base method.

func (*MockConsensus) EXPECT

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

func (*MockConsensus) Propose

func (m *MockConsensus) Propose(arg0 consbench.SyncInfo)

Propose mocks base method.

func (*MockConsensus) StopVoting

func (m *MockConsensus) StopVoting(arg0 consbench.View)

StopVoting mocks base method.

type MockConsensusMockRecorder

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

MockConsensusMockRecorder is the mock recorder for MockConsensus.

func (*MockConsensusMockRecorder) ChainLength

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

ChainLength indicates an expected call of ChainLength.

func (*MockConsensusMockRecorder) CommittedBlock

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

CommittedBlock indicates an expected call of CommittedBlock.

func (*MockConsensusMockRecorder) Propose

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

Propose indicates an expected call of Propose.

func (*MockConsensusMockRecorder) StopVoting

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

StopVoting indicates an expected call of StopVoting.

type MockExecutor

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

MockExecutor is a mock of Executor interface.

func NewMockExecutor

func NewMockExecutor(ctrl *gomock.Controller) *MockExecutor

NewMockExecutor creates a new mock instance.

func (*MockExecutor) EXPECT

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

func (*MockExecutor) Exec

func (m *MockExecutor) Exec(arg0 consbench.Command)

Exec mocks base method.

type MockExecutorMockRecorder

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

MockExecutorMockRecorder is the mock recorder for MockExecutor.

func (*MockExecutorMockRecorder) Exec

func (mr *MockExecutorMockRecorder) Exec(arg0 interface{}) *gomock.Call

Exec indicates an expected call of Exec.

type MockForkHandler

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

MockForkHandler is a mock of ForkHandler interface.

func NewMockForkHandler

func NewMockForkHandler(ctrl *gomock.Controller) *MockForkHandler

NewMockForkHandler creates a new mock instance.

func (*MockForkHandler) EXPECT

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

func (*MockForkHandler) Fork

func (m *MockForkHandler) Fork(arg0 consbench.Command)

Fork mocks base method.

type MockForkHandlerMockRecorder

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

MockForkHandlerMockRecorder is the mock recorder for MockForkHandler.

func (*MockForkHandlerMockRecorder) Fork

func (mr *MockForkHandlerMockRecorder) Fork(arg0 interface{}) *gomock.Call

Fork indicates an expected call of Fork.

type MockReplica

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

MockReplica is a mock of Replica interface.

func NewMockReplica

func NewMockReplica(ctrl *gomock.Controller) *MockReplica

NewMockReplica creates a new mock instance.

func (*MockReplica) EXPECT

func (m *MockReplica) EXPECT() *MockReplicaMockRecorder

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

func (*MockReplica) ID

func (m *MockReplica) ID() consbench.ID

ID mocks base method.

func (*MockReplica) Metadata

func (m *MockReplica) Metadata() map[string]string

Metadata mocks base method.

func (*MockReplica) NewView

func (m *MockReplica) NewView(arg0 consbench.SyncInfo)

NewView mocks base method.

func (*MockReplica) PublicKey

func (m *MockReplica) PublicKey() crypto.PublicKey

PublicKey mocks base method.

func (*MockReplica) Vote

func (m *MockReplica) Vote(arg0 consbench.PartialCert)

Vote mocks base method.

type MockReplicaMockRecorder

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

MockReplicaMockRecorder is the mock recorder for MockReplica.

func (*MockReplicaMockRecorder) ID

ID indicates an expected call of ID.

func (*MockReplicaMockRecorder) Metadata

func (mr *MockReplicaMockRecorder) Metadata() *gomock.Call

Metadata indicates an expected call of Metadata.

func (*MockReplicaMockRecorder) NewView

func (mr *MockReplicaMockRecorder) NewView(arg0 interface{}) *gomock.Call

NewView indicates an expected call of NewView.

func (*MockReplicaMockRecorder) PublicKey

func (mr *MockReplicaMockRecorder) PublicKey() *gomock.Call

PublicKey indicates an expected call of PublicKey.

func (*MockReplicaMockRecorder) Vote

func (mr *MockReplicaMockRecorder) Vote(arg0 interface{}) *gomock.Call

Vote indicates an expected call of Vote.

type MockSynchronizer

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

MockSynchronizer is a mock of Synchronizer interface.

func NewMockSynchronizer

func NewMockSynchronizer(ctrl *gomock.Controller) *MockSynchronizer

NewMockSynchronizer creates a new mock instance.

func (*MockSynchronizer) AdvanceView

func (m *MockSynchronizer) AdvanceView(arg0 consbench.SyncInfo)

AdvanceView mocks base method.

func (*MockSynchronizer) EXPECT

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

func (*MockSynchronizer) HighQC

func (m *MockSynchronizer) HighQC() consbench.QuorumCert

HighQC mocks base method.

func (*MockSynchronizer) LeafBlock

func (m *MockSynchronizer) LeafBlock() *consbench.Block

LeafBlock mocks base method.

func (*MockSynchronizer) Start

func (m *MockSynchronizer) Start(arg0 context.Context)

Start mocks base method.

func (*MockSynchronizer) View

func (m *MockSynchronizer) View() consbench.View

View mocks base method.

func (*MockSynchronizer) ViewContext

func (m *MockSynchronizer) ViewContext() context.Context

ViewContext mocks base method.

type MockSynchronizerMockRecorder

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

MockSynchronizerMockRecorder is the mock recorder for MockSynchronizer.

func (*MockSynchronizerMockRecorder) AdvanceView

func (mr *MockSynchronizerMockRecorder) AdvanceView(arg0 interface{}) *gomock.Call

AdvanceView indicates an expected call of AdvanceView.

func (*MockSynchronizerMockRecorder) HighQC

HighQC indicates an expected call of HighQC.

func (*MockSynchronizerMockRecorder) LeafBlock

func (mr *MockSynchronizerMockRecorder) LeafBlock() *gomock.Call

LeafBlock indicates an expected call of LeafBlock.

func (*MockSynchronizerMockRecorder) Start

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

Start indicates an expected call of Start.

func (*MockSynchronizerMockRecorder) View

View indicates an expected call of View.

func (*MockSynchronizerMockRecorder) ViewContext

func (mr *MockSynchronizerMockRecorder) ViewContext() *gomock.Call

ViewContext indicates an expected call of ViewContext.

Jump to

Keyboard shortcuts

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