mocks

package
v0.2.24-beta.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

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 MockAtxValidator

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

MockAtxValidator is a mock of AtxValidator interface.

func NewMockAtxValidator

func NewMockAtxValidator(ctrl *gomock.Controller) *MockAtxValidator

NewMockAtxValidator creates a new mock instance.

func (*MockAtxValidator) EXPECT

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

func (*MockAtxValidator) HandleAtxData

func (m *MockAtxValidator) HandleAtxData(arg0 context.Context, arg1 p2p.Peer, arg2 []byte) error

HandleAtxData mocks base method.

type MockAtxValidatorMockRecorder

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

MockAtxValidatorMockRecorder is the mock recorder for MockAtxValidator.

func (*MockAtxValidatorMockRecorder) HandleAtxData

func (mr *MockAtxValidatorMockRecorder) HandleAtxData(arg0, arg1, arg2 interface{}) *gomock.Call

HandleAtxData indicates an expected call of HandleAtxData.

type MockBallotValidator

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

MockBallotValidator is a mock of BallotValidator interface.

func NewMockBallotValidator

func NewMockBallotValidator(ctrl *gomock.Controller) *MockBallotValidator

NewMockBallotValidator creates a new mock instance.

func (*MockBallotValidator) EXPECT

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

func (*MockBallotValidator) HandleSyncedBallot

func (m *MockBallotValidator) HandleSyncedBallot(arg0 context.Context, arg1 p2p.Peer, arg2 []byte) error

HandleSyncedBallot mocks base method.

type MockBallotValidatorMockRecorder

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

MockBallotValidatorMockRecorder is the mock recorder for MockBallotValidator.

func (*MockBallotValidatorMockRecorder) HandleSyncedBallot

func (mr *MockBallotValidatorMockRecorder) HandleSyncedBallot(arg0, arg1, arg2 interface{}) *gomock.Call

HandleSyncedBallot indicates an expected call of HandleSyncedBallot.

type MockBlockValidator

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

MockBlockValidator is a mock of BlockValidator interface.

func NewMockBlockValidator

func NewMockBlockValidator(ctrl *gomock.Controller) *MockBlockValidator

NewMockBlockValidator creates a new mock instance.

func (*MockBlockValidator) EXPECT

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

func (*MockBlockValidator) HandleSyncedBlock

func (m *MockBlockValidator) HandleSyncedBlock(arg0 context.Context, arg1 p2p.Peer, arg2 []byte) error

HandleSyncedBlock mocks base method.

type MockBlockValidatorMockRecorder

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

MockBlockValidatorMockRecorder is the mock recorder for MockBlockValidator.

func (*MockBlockValidatorMockRecorder) HandleSyncedBlock

func (mr *MockBlockValidatorMockRecorder) HandleSyncedBlock(arg0, arg1, arg2 interface{}) *gomock.Call

HandleSyncedBlock indicates an expected call of HandleSyncedBlock.

type MockMalfeasanceValidator

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

MockMalfeasanceValidator is a mock of MalfeasanceValidator interface.

func NewMockMalfeasanceValidator

func NewMockMalfeasanceValidator(ctrl *gomock.Controller) *MockMalfeasanceValidator

NewMockMalfeasanceValidator creates a new mock instance.

func (*MockMalfeasanceValidator) EXPECT

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

func (*MockMalfeasanceValidator) HandleSyncedMalfeasanceProof

func (m *MockMalfeasanceValidator) HandleSyncedMalfeasanceProof(arg0 context.Context, arg1 p2p.Peer, arg2 []byte) error

HandleSyncedMalfeasanceProof mocks base method.

type MockMalfeasanceValidatorMockRecorder

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

MockMalfeasanceValidatorMockRecorder is the mock recorder for MockMalfeasanceValidator.

func (*MockMalfeasanceValidatorMockRecorder) HandleSyncedMalfeasanceProof

func (mr *MockMalfeasanceValidatorMockRecorder) HandleSyncedMalfeasanceProof(arg0, arg1, arg2 interface{}) *gomock.Call

HandleSyncedMalfeasanceProof indicates an expected call of HandleSyncedMalfeasanceProof.

type MockPoetValidator

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

MockPoetValidator is a mock of PoetValidator interface.

func NewMockPoetValidator

func NewMockPoetValidator(ctrl *gomock.Controller) *MockPoetValidator

NewMockPoetValidator creates a new mock instance.

func (*MockPoetValidator) EXPECT

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

func (*MockPoetValidator) ValidateAndStoreMsg

func (m *MockPoetValidator) ValidateAndStoreMsg(arg0 context.Context, arg1 p2p.Peer, arg2 []byte) error

ValidateAndStoreMsg mocks base method.

type MockPoetValidatorMockRecorder

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

MockPoetValidatorMockRecorder is the mock recorder for MockPoetValidator.

func (*MockPoetValidatorMockRecorder) ValidateAndStoreMsg

func (mr *MockPoetValidatorMockRecorder) ValidateAndStoreMsg(arg0, arg1, arg2 interface{}) *gomock.Call

ValidateAndStoreMsg indicates an expected call of ValidateAndStoreMsg.

type MockProposalValidator

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

MockProposalValidator is a mock of ProposalValidator interface.

func NewMockProposalValidator

func NewMockProposalValidator(ctrl *gomock.Controller) *MockProposalValidator

NewMockProposalValidator creates a new mock instance.

func (*MockProposalValidator) EXPECT

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

func (*MockProposalValidator) HandleSyncedProposal

func (m *MockProposalValidator) HandleSyncedProposal(arg0 context.Context, arg1 p2p.Peer, arg2 []byte) error

HandleSyncedProposal mocks base method.

type MockProposalValidatorMockRecorder

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

MockProposalValidatorMockRecorder is the mock recorder for MockProposalValidator.

func (*MockProposalValidatorMockRecorder) HandleSyncedProposal

func (mr *MockProposalValidatorMockRecorder) HandleSyncedProposal(arg0, arg1, arg2 interface{}) *gomock.Call

HandleSyncedProposal indicates an expected call of HandleSyncedProposal.

type MockTxValidator

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

MockTxValidator is a mock of TxValidator interface.

func NewMockTxValidator

func NewMockTxValidator(ctrl *gomock.Controller) *MockTxValidator

NewMockTxValidator creates a new mock instance.

func (*MockTxValidator) EXPECT

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

func (*MockTxValidator) HandleBlockTransaction

func (m *MockTxValidator) HandleBlockTransaction(arg0 context.Context, arg1 p2p.Peer, arg2 []byte) error

HandleBlockTransaction mocks base method.

func (*MockTxValidator) HandleProposalTransaction

func (m *MockTxValidator) HandleProposalTransaction(arg0 context.Context, arg1 p2p.Peer, arg2 []byte) error

HandleProposalTransaction mocks base method.

type MockTxValidatorMockRecorder

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

MockTxValidatorMockRecorder is the mock recorder for MockTxValidator.

func (*MockTxValidatorMockRecorder) HandleBlockTransaction

func (mr *MockTxValidatorMockRecorder) HandleBlockTransaction(arg0, arg1, arg2 interface{}) *gomock.Call

HandleBlockTransaction indicates an expected call of HandleBlockTransaction.

func (*MockTxValidatorMockRecorder) HandleProposalTransaction

func (mr *MockTxValidatorMockRecorder) HandleProposalTransaction(arg0, arg1, arg2 interface{}) *gomock.Call

HandleProposalTransaction indicates an expected call of HandleProposalTransaction.

type Mockhost

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

Mockhost is a mock of host interface.

func NewMockhost

func NewMockhost(ctrl *gomock.Controller) *Mockhost

NewMockhost creates a new mock instance.

func (*Mockhost) Close

func (m *Mockhost) Close() error

Close mocks base method.

func (*Mockhost) EXPECT

func (m *Mockhost) EXPECT() *MockhostMockRecorder

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

func (*Mockhost) GetPeers

func (m *Mockhost) GetPeers() []p2p.Peer

GetPeers mocks base method.

type MockhostMockRecorder

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

MockhostMockRecorder is the mock recorder for Mockhost.

func (*MockhostMockRecorder) Close

func (mr *MockhostMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockhostMockRecorder) GetPeers

func (mr *MockhostMockRecorder) GetPeers() *gomock.Call

GetPeers indicates an expected call of GetPeers.

type MockmeshProvider

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

MockmeshProvider is a mock of meshProvider interface.

func NewMockmeshProvider

func NewMockmeshProvider(ctrl *gomock.Controller) *MockmeshProvider

NewMockmeshProvider creates a new mock instance.

func (*MockmeshProvider) EXPECT

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

func (*MockmeshProvider) LastVerified

func (m *MockmeshProvider) LastVerified() types.LayerID

LastVerified mocks base method.

type MockmeshProviderMockRecorder

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

MockmeshProviderMockRecorder is the mock recorder for MockmeshProvider.

func (*MockmeshProviderMockRecorder) LastVerified

func (mr *MockmeshProviderMockRecorder) LastVerified() *gomock.Call

LastVerified indicates an expected call of LastVerified.

type Mockrequester

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

Mockrequester is a mock of requester interface.

func NewMockrequester

func NewMockrequester(ctrl *gomock.Controller) *Mockrequester

NewMockrequester creates a new mock instance.

func (*Mockrequester) EXPECT

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

func (*Mockrequester) Request

func (m *Mockrequester) Request(arg0 context.Context, arg1 p2p.Peer, arg2 []byte, arg3 func([]byte), arg4 func(error)) error

Request mocks base method.

type MockrequesterMockRecorder

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

MockrequesterMockRecorder is the mock recorder for Mockrequester.

func (*MockrequesterMockRecorder) Request

func (mr *MockrequesterMockRecorder) Request(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

Request indicates an expected call of Request.

Jump to

Keyboard shortcuts

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