mock_protocol

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 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) GetBlockHashByNumber added in v0.30.0

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

GetBlockHashByNumber mocks base method.

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) GetTrieNode added in v0.30.0

func (m *MockQuaiP2PNode) GetTrieNode(hash common.Hash, location common.Location) *trie.TrieNodeResponse

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

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) 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) GetTrieNode added in v0.30.0

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

GetTrieNode indicates an expected call of GetTrieNode.

func (*MockQuaiP2PNodeMockRecorder) GetWorkObject added in v0.30.0

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

GetWorkObject indicates an expected call of GetWorkObject.

Jump to

Keyboard shortcuts

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