mocks

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 6 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 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 types.Hash32, arg2 p2p.Peer, arg3 []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, arg3 interface{}) *PoetValidatorValidateAndStoreMsgCall

ValidateAndStoreMsg indicates an expected call of ValidateAndStoreMsg.

type MockSyncValidator

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

MockSyncValidator is a mock of SyncValidator interface.

func NewMockSyncValidator

func NewMockSyncValidator(ctrl *gomock.Controller) *MockSyncValidator

NewMockSyncValidator creates a new mock instance.

func (*MockSyncValidator) EXPECT

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

func (*MockSyncValidator) HandleMessage

func (m *MockSyncValidator) HandleMessage(arg0 context.Context, arg1 types.Hash32, arg2 p2p.Peer, arg3 []byte) error

HandleMessage mocks base method.

type MockSyncValidatorMockRecorder

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

MockSyncValidatorMockRecorder is the mock recorder for MockSyncValidator.

func (*MockSyncValidatorMockRecorder) HandleMessage

func (mr *MockSyncValidatorMockRecorder) HandleMessage(arg0, arg1, arg2, arg3 interface{}) *SyncValidatorHandleMessageCall

HandleMessage indicates an expected call of HandleMessage.

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) Connected added in v1.1.3

func (m *Mockhost) Connected(arg0 p2p.Peer) bool

Connected 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.

func (*Mockhost) ID

func (m *Mockhost) ID() p2p.Peer

ID mocks base method.

func (*Mockhost) PeerProtocols added in v1.1.0

func (m *Mockhost) PeerProtocols(arg0 p2p.Peer) ([]protocol.ID, error)

PeerProtocols 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() *hostCloseCall

Close indicates an expected call of Close.

func (*MockhostMockRecorder) Connected added in v1.1.3

func (mr *MockhostMockRecorder) Connected(arg0 interface{}) *hostConnectedCall

Connected indicates an expected call of Connected.

func (*MockhostMockRecorder) GetPeers

func (mr *MockhostMockRecorder) GetPeers() *hostGetPeersCall

GetPeers indicates an expected call of GetPeers.

func (*MockhostMockRecorder) ID

func (mr *MockhostMockRecorder) ID() *hostIDCall

ID indicates an expected call of ID.

func (*MockhostMockRecorder) PeerProtocols added in v1.1.0

func (mr *MockhostMockRecorder) PeerProtocols(arg0 interface{}) *hostPeerProtocolsCall

PeerProtocols indicates an expected call of PeerProtocols.

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() *meshProviderLastVerifiedCall

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{}) *requesterRequestCall

Request indicates an expected call of Request.

type PoetValidatorValidateAndStoreMsgCall added in v1.1.5

type PoetValidatorValidateAndStoreMsgCall struct {
	*gomock.Call
}

PoetValidatorValidateAndStoreMsgCall wrap *gomock.Call

func (*PoetValidatorValidateAndStoreMsgCall) Do added in v1.1.5

Do rewrite *gomock.Call.Do

func (*PoetValidatorValidateAndStoreMsgCall) DoAndReturn added in v1.1.5

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*PoetValidatorValidateAndStoreMsgCall) Return added in v1.1.5

Return rewrite *gomock.Call.Return

type SyncValidatorHandleMessageCall added in v1.1.5

type SyncValidatorHandleMessageCall struct {
	*gomock.Call
}

SyncValidatorHandleMessageCall wrap *gomock.Call

func (*SyncValidatorHandleMessageCall) Do added in v1.1.5

Do rewrite *gomock.Call.Do

func (*SyncValidatorHandleMessageCall) DoAndReturn added in v1.1.5

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*SyncValidatorHandleMessageCall) Return added in v1.1.5

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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