mock_protocol

package
v0.39.4 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mock_protocol is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockQuaiP2PNode

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

MockQuaiP2PNode is a mock of QuaiP2PNode interface.

func NewMockQuaiP2PNode

func NewMockQuaiP2PNode(ctrl *gomock.Controller) *MockQuaiP2PNode

NewMockQuaiP2PNode creates a new mock instance.

func (*MockQuaiP2PNode) Connect

func (m *MockQuaiP2PNode) Connect(arg0 peer.AddrInfo) error

Connect mocks base method.

func (*MockQuaiP2PNode) EXPECT

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

func (*MockQuaiP2PNode) GetBandwidthCounter added in v0.32.0

func (m *MockQuaiP2PNode) GetBandwidthCounter() metrics.Reporter

GetBandwidthCounter mocks base method.

func (*MockQuaiP2PNode) GetBlockHashByNumber added in v0.30.0

func (m *MockQuaiP2PNode) GetBlockHashByNumber(number *big.Int, location common.Location) *common.Hash

GetBlockHashByNumber mocks base method.

func (*MockQuaiP2PNode) GetHeight added in v0.37.0

func (m *MockQuaiP2PNode) GetHeight(location common.Location) uint64

GetHeight returns the latest accepted height for the given location

func (*MockQuaiP2PNode) GetRequestManager added in v0.30.0

func (m *MockQuaiP2PNode) GetRequestManager() requestManager.RequestManager

GetRequestManager mocks base method.

func (*MockQuaiP2PNode) GetStream added in v0.30.0

func (m *MockQuaiP2PNode) GetStream(arg0 peer.ID) (network.Stream, error)

GetStream mocks base method.

func (*MockQuaiP2PNode) GetWorkObject added in v0.30.0

func (m *MockQuaiP2PNode) GetWorkObject(hash common.Hash, location common.Location) *types.WorkObject

GetWorkObject mocks base method.

func (*MockQuaiP2PNode) GetWorkObjectsFrom added in v0.32.0

func (m *MockQuaiP2PNode) GetWorkObjectsFrom(hash common.Hash, location common.Location, count int) []*types.WorkObjectBlockView

GetWorkObjectsFrom mocks base method.

type MockQuaiP2PNodeMockRecorder

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

MockQuaiP2PNodeMockRecorder is the mock recorder for MockQuaiP2PNode.

func (*MockQuaiP2PNodeMockRecorder) Connect

func (mr *MockQuaiP2PNodeMockRecorder) Connect(arg0 any) *gomock.Call

Connect indicates an expected call of Connect.

func (*MockQuaiP2PNodeMockRecorder) GetBandwidthCounter added in v0.32.0

func (mr *MockQuaiP2PNodeMockRecorder) GetBandwidthCounter() *gomock.Call

GetBandwidthCounter indicates an expected call of GetBandwidthCounter.

func (*MockQuaiP2PNodeMockRecorder) GetBlockHashByNumber added in v0.30.0

func (mr *MockQuaiP2PNodeMockRecorder) GetBlockHashByNumber(number, location any) *gomock.Call

GetBlockHashByNumber indicates an expected call of GetBlockHashByNumber.

func (*MockQuaiP2PNodeMockRecorder) GetRequestManager added in v0.30.0

func (mr *MockQuaiP2PNodeMockRecorder) GetRequestManager() *gomock.Call

GetRequestManager indicates an expected call of GetRequestManager.

func (*MockQuaiP2PNodeMockRecorder) GetStream added in v0.30.0

func (mr *MockQuaiP2PNodeMockRecorder) GetStream(arg0 any) *gomock.Call

GetStream indicates an expected call of GetStream.

func (*MockQuaiP2PNodeMockRecorder) GetWorkObject added in v0.30.0

func (mr *MockQuaiP2PNodeMockRecorder) GetWorkObject(hash, location any) *gomock.Call

GetWorkObject indicates an expected call of GetWorkObject.

func (*MockQuaiP2PNodeMockRecorder) GetWorkObjectsFrom added in v0.32.0

func (mr *MockQuaiP2PNodeMockRecorder) GetWorkObjectsFrom(hash, location, count any) *gomock.Call

GetWorkObjectsFrom indicates an expected call of GetWorkObjectsFrom.

Jump to

Keyboard shortcuts

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