mockp2p

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2019 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mockp2p is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockP2P

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

MockP2P is a mock of P2P interface

func NewMockP2P

func NewMockP2P(ctrl *gomock.Controller) *MockP2P

NewMockP2P creates a new mock instance

func (*MockP2P) EXPECT

func (m *MockP2P) EXPECT() *MockP2PMockRecorder

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

func (*MockP2P) RequestBlockByHash

func (m *MockP2P) RequestBlockByHash(arg0 context.Context, arg1 go_libp2p_peer.ID, arg2 []byte) (*pb.Block, error)

RequestBlockByHash mocks base method

func (*MockP2P) RequestBlocksByNumber

func (m *MockP2P) RequestBlocksByNumber(arg0 context.Context, arg1 go_libp2p_peer.ID, arg2, arg3 uint64) ([]*pb.Block, error)

RequestBlocksByNumber mocks base method

func (*MockP2P) RequestHeaderByHash

func (m *MockP2P) RequestHeaderByHash(arg0 context.Context, arg1 go_libp2p_peer.ID, arg2 []byte) (*pb.Header, error)

RequestHeaderByHash mocks base method

func (*MockP2P) RequestHeadersByNumber

func (m *MockP2P) RequestHeadersByNumber(arg0 context.Context, arg1 go_libp2p_peer.ID, arg2, arg3 uint64) ([]*pb.Header, error)

RequestHeadersByNumber mocks base method

func (*MockP2P) RespondBlockByHash

func (m *MockP2P) RespondBlockByHash(arg0 context.Context, arg1 *pb.BlockRequest, arg2 p2p.Encoder, arg3 chain.Reader) error

RespondBlockByHash mocks base method

func (*MockP2P) RespondBlocksByNumber

func (m *MockP2P) RespondBlocksByNumber(arg0 context.Context, arg1 *pb.BlocksRequest, arg2 p2p.Encoder, arg3 chain.Reader) error

RespondBlocksByNumber mocks base method

func (*MockP2P) RespondHeaderByHash

func (m *MockP2P) RespondHeaderByHash(arg0 context.Context, arg1 *pb.HeaderRequest, arg2 p2p.Encoder, arg3 chain.Reader) error

RespondHeaderByHash mocks base method

func (*MockP2P) RespondHeadersByNumber

func (m *MockP2P) RespondHeadersByNumber(arg0 context.Context, arg1 *pb.HeadersRequest, arg2 p2p.Encoder, arg3 chain.Reader) error

RespondHeadersByNumber mocks base method

type MockP2PMockRecorder

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

MockP2PMockRecorder is the mock recorder for MockP2P

func (*MockP2PMockRecorder) RequestBlockByHash

func (mr *MockP2PMockRecorder) RequestBlockByHash(arg0, arg1, arg2 interface{}) *gomock.Call

RequestBlockByHash indicates an expected call of RequestBlockByHash

func (*MockP2PMockRecorder) RequestBlocksByNumber

func (mr *MockP2PMockRecorder) RequestBlocksByNumber(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

RequestBlocksByNumber indicates an expected call of RequestBlocksByNumber

func (*MockP2PMockRecorder) RequestHeaderByHash

func (mr *MockP2PMockRecorder) RequestHeaderByHash(arg0, arg1, arg2 interface{}) *gomock.Call

RequestHeaderByHash indicates an expected call of RequestHeaderByHash

func (*MockP2PMockRecorder) RequestHeadersByNumber

func (mr *MockP2PMockRecorder) RequestHeadersByNumber(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

RequestHeadersByNumber indicates an expected call of RequestHeadersByNumber

func (*MockP2PMockRecorder) RespondBlockByHash

func (mr *MockP2PMockRecorder) RespondBlockByHash(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

RespondBlockByHash indicates an expected call of RespondBlockByHash

func (*MockP2PMockRecorder) RespondBlocksByNumber

func (mr *MockP2PMockRecorder) RespondBlocksByNumber(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

RespondBlocksByNumber indicates an expected call of RespondBlocksByNumber

func (*MockP2PMockRecorder) RespondHeaderByHash

func (mr *MockP2PMockRecorder) RespondHeaderByHash(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

RespondHeaderByHash indicates an expected call of RespondHeaderByHash

func (*MockP2PMockRecorder) RespondHeadersByNumber

func (mr *MockP2PMockRecorder) RespondHeadersByNumber(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

RespondHeadersByNumber indicates an expected call of RespondHeadersByNumber

Jump to

Keyboard shortcuts

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