Documentation ¶
Overview ¶
Package mock_protocol is a generated GoMock package.
Index ¶
- type MockQuaiP2PNode
- func (m *MockQuaiP2PNode) Connect(arg0 peer.AddrInfo) error
- func (m *MockQuaiP2PNode) EXPECT() *MockQuaiP2PNodeMockRecorder
- func (m *MockQuaiP2PNode) GetBlockHashByNumber(number *big.Int, location common.Location) *common.Hash
- func (m *MockQuaiP2PNode) GetRequestManager() requestManager.RequestManager
- func (m *MockQuaiP2PNode) GetStream(arg0 peer.ID) (network.Stream, error)
- func (m *MockQuaiP2PNode) GetTrieNode(hash common.Hash, location common.Location) *trie.TrieNodeResponse
- func (m *MockQuaiP2PNode) GetWorkObject(hash common.Hash, location common.Location) *types.WorkObject
- type MockQuaiP2PNodeMockRecorder
- func (mr *MockQuaiP2PNodeMockRecorder) Connect(arg0 any) *gomock.Call
- func (mr *MockQuaiP2PNodeMockRecorder) GetBlockHashByNumber(number, location any) *gomock.Call
- func (mr *MockQuaiP2PNodeMockRecorder) GetRequestManager() *gomock.Call
- func (mr *MockQuaiP2PNodeMockRecorder) GetStream(arg0 any) *gomock.Call
- func (mr *MockQuaiP2PNodeMockRecorder) GetTrieNode(hash, location any) *gomock.Call
- func (mr *MockQuaiP2PNodeMockRecorder) GetWorkObject(hash, location any) *gomock.Call
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 ¶
func (m *MockQuaiP2PNode) EXPECT() *MockQuaiP2PNodeMockRecorder
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) 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.