mocks

package
v0.2.21-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 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 MockatxHandler

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

MockatxHandler is a mock of atxHandler interface.

func NewMockatxHandler

func NewMockatxHandler(ctrl *gomock.Controller) *MockatxHandler

NewMockatxHandler creates a new mock instance.

func (*MockatxHandler) EXPECT

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

func (*MockatxHandler) HandleAtxData

func (m *MockatxHandler) HandleAtxData(arg0 context.Context, arg1 []byte) error

HandleAtxData mocks base method.

type MockatxHandlerMockRecorder

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

MockatxHandlerMockRecorder is the mock recorder for MockatxHandler.

func (*MockatxHandlerMockRecorder) HandleAtxData

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

HandleAtxData indicates an expected call of HandleAtxData.

type MockballotHandler

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

MockballotHandler is a mock of ballotHandler interface.

func NewMockballotHandler

func NewMockballotHandler(ctrl *gomock.Controller) *MockballotHandler

NewMockballotHandler creates a new mock instance.

func (*MockballotHandler) EXPECT

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

func (*MockballotHandler) HandleSyncedBallot

func (m *MockballotHandler) HandleSyncedBallot(arg0 context.Context, arg1 []byte) error

HandleSyncedBallot mocks base method.

type MockballotHandlerMockRecorder

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

MockballotHandlerMockRecorder is the mock recorder for MockballotHandler.

func (*MockballotHandlerMockRecorder) HandleSyncedBallot

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

HandleSyncedBallot indicates an expected call of HandleSyncedBallot.

type MockblockHandler

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

MockblockHandler is a mock of blockHandler interface.

func NewMockblockHandler

func NewMockblockHandler(ctrl *gomock.Controller) *MockblockHandler

NewMockblockHandler creates a new mock instance.

func (*MockblockHandler) EXPECT

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

func (*MockblockHandler) HandleSyncedBlock

func (m *MockblockHandler) HandleSyncedBlock(arg0 context.Context, arg1 []byte) error

HandleSyncedBlock mocks base method.

type MockblockHandlerMockRecorder

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

MockblockHandlerMockRecorder is the mock recorder for MockblockHandler.

func (*MockblockHandlerMockRecorder) HandleSyncedBlock

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

HandleSyncedBlock indicates an expected call of HandleSyncedBlock.

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 MockpoetHandler

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

MockpoetHandler is a mock of poetHandler interface.

func NewMockpoetHandler

func NewMockpoetHandler(ctrl *gomock.Controller) *MockpoetHandler

NewMockpoetHandler creates a new mock instance.

func (*MockpoetHandler) EXPECT

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

func (*MockpoetHandler) ValidateAndStoreMsg

func (m *MockpoetHandler) ValidateAndStoreMsg(arg0 context.Context, arg1 []byte) error

ValidateAndStoreMsg mocks base method.

type MockpoetHandlerMockRecorder

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

MockpoetHandlerMockRecorder is the mock recorder for MockpoetHandler.

func (*MockpoetHandlerMockRecorder) ValidateAndStoreMsg

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

ValidateAndStoreMsg indicates an expected call of ValidateAndStoreMsg.

type MockproposalHandler

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

MockproposalHandler is a mock of proposalHandler interface.

func NewMockproposalHandler

func NewMockproposalHandler(ctrl *gomock.Controller) *MockproposalHandler

NewMockproposalHandler creates a new mock instance.

func (*MockproposalHandler) EXPECT

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

func (*MockproposalHandler) HandleSyncedProposal

func (m *MockproposalHandler) HandleSyncedProposal(arg0 context.Context, arg1 []byte) error

HandleSyncedProposal mocks base method.

type MockproposalHandlerMockRecorder

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

MockproposalHandlerMockRecorder is the mock recorder for MockproposalHandler.

func (*MockproposalHandlerMockRecorder) HandleSyncedProposal

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

HandleSyncedProposal indicates an expected call of HandleSyncedProposal.

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.

type MocktxHandler

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

MocktxHandler is a mock of txHandler interface.

func NewMocktxHandler

func NewMocktxHandler(ctrl *gomock.Controller) *MocktxHandler

NewMocktxHandler creates a new mock instance.

func (*MocktxHandler) EXPECT

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

func (*MocktxHandler) HandleBlockTransaction

func (m *MocktxHandler) HandleBlockTransaction(arg0 context.Context, arg1 []byte) error

HandleBlockTransaction mocks base method.

func (*MocktxHandler) HandleProposalTransaction

func (m *MocktxHandler) HandleProposalTransaction(arg0 context.Context, arg1 []byte) error

HandleProposalTransaction mocks base method.

type MocktxHandlerMockRecorder

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

MocktxHandlerMockRecorder is the mock recorder for MocktxHandler.

func (*MocktxHandlerMockRecorder) HandleBlockTransaction

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

HandleBlockTransaction indicates an expected call of HandleBlockTransaction.

func (*MocktxHandlerMockRecorder) HandleProposalTransaction

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

HandleProposalTransaction indicates an expected call of HandleProposalTransaction.

Jump to

Keyboard shortcuts

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