mock_clienttypes

package
v0.0.0-...-f5f0bdb Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package mock_clienttypes is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockInterfaceChains

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

MockInterfaceChains is a mock of InterfaceChains interface

func NewMockInterfaceChains

func NewMockInterfaceChains(ctrl *gomock.Controller) *MockInterfaceChains

NewMockInterfaceChains creates a new mock instance

func (*MockInterfaceChains) EXPECT

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

func (*MockInterfaceChains) GetBestBlocksHash

func (m *MockInterfaceChains) GetBestBlocksHash() ([]byte, error)

GetBestBlocksHash mocks base method

func (*MockInterfaceChains) GetBestBlocksNumber

func (m *MockInterfaceChains) GetBestBlocksNumber() (*big.Int, error)

GetBestBlocksNumber mocks base method

func (*MockInterfaceChains) GetBlockDataByHash

func (m *MockInterfaceChains) GetBlockDataByHash(hash []byte) (*types4.StateBlock, error)

GetBlockDataByHash mocks base method

func (*MockInterfaceChains) GetGenesisHash

func (m *MockInterfaceChains) GetGenesisHash() ([]byte, error)

GetGenesisHash mocks base method

func (*MockInterfaceChains) ImportBlock

func (m *MockInterfaceChains) ImportBlock(block *types4.StateBlock) (bool, error)

ImportBlock mocks base method

type MockInterfaceChainsMockRecorder

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

MockInterfaceChainsMockRecorder is the mock recorder for MockInterfaceChains

func (*MockInterfaceChainsMockRecorder) GetBestBlocksHash

func (mr *MockInterfaceChainsMockRecorder) GetBestBlocksHash() *gomock.Call

GetBestBlocksHash indicates an expected call of GetBestBlocksHash

func (*MockInterfaceChainsMockRecorder) GetBestBlocksNumber

func (mr *MockInterfaceChainsMockRecorder) GetBestBlocksNumber() *gomock.Call

GetBestBlocksNumber indicates an expected call of GetBestBlocksNumber

func (*MockInterfaceChainsMockRecorder) GetBlockDataByHash

func (mr *MockInterfaceChainsMockRecorder) GetBlockDataByHash(hash interface{}) *gomock.Call

GetBlockDataByHash indicates an expected call of GetBlockDataByHash

func (*MockInterfaceChainsMockRecorder) GetGenesisHash

func (mr *MockInterfaceChainsMockRecorder) GetGenesisHash() *gomock.Call

GetGenesisHash indicates an expected call of GetGenesisHash

func (*MockInterfaceChainsMockRecorder) ImportBlock

func (mr *MockInterfaceChainsMockRecorder) ImportBlock(block interface{}) *gomock.Call

ImportBlock indicates an expected call of ImportBlock

type MockInterfaceMessage

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

MockInterfaceMessage is a mock of InterfaceMessage interface

func NewMockInterfaceMessage

func NewMockInterfaceMessage(ctrl *gomock.Controller) *MockInterfaceMessage

NewMockInterfaceMessage creates a new mock instance

func (*MockInterfaceMessage) Decode

func (m *MockInterfaceMessage) Decode(bytes []byte) error

Decode mocks base method

func (*MockInterfaceMessage) EXPECT

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

func (*MockInterfaceMessage) Encode

func (m *MockInterfaceMessage) Encode() ([]byte, error)

Encode mocks base method

func (*MockInterfaceMessage) GetHeader

func (m *MockInterfaceMessage) GetHeader() *types4.Header

GetHeader mocks base method

func (*MockInterfaceMessage) Kind

Kind mocks base method

func (*MockInterfaceMessage) MarshalJSON

func (m *MockInterfaceMessage) MarshalJSON() ([]byte, error)

MarshalJSON mocks base method

func (*MockInterfaceMessage) UnmarshalJSON

func (m *MockInterfaceMessage) UnmarshalJSON(bytes []byte) error

UnmarshalJSON mocks base method

type MockInterfaceMessageMockRecorder

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

MockInterfaceMessageMockRecorder is the mock recorder for MockInterfaceMessage

func (*MockInterfaceMessageMockRecorder) Decode

func (mr *MockInterfaceMessageMockRecorder) Decode(bytes interface{}) *gomock.Call

Decode indicates an expected call of Decode

func (*MockInterfaceMessageMockRecorder) Encode

Encode indicates an expected call of Encode

func (*MockInterfaceMessageMockRecorder) GetHeader

func (mr *MockInterfaceMessageMockRecorder) GetHeader() *gomock.Call

GetHeader indicates an expected call of GetHeader

func (*MockInterfaceMessageMockRecorder) Kind

Kind indicates an expected call of Kind

func (*MockInterfaceMessageMockRecorder) MarshalJSON

func (mr *MockInterfaceMessageMockRecorder) MarshalJSON() *gomock.Call

MarshalJSON indicates an expected call of MarshalJSON

func (*MockInterfaceMessageMockRecorder) UnmarshalJSON

func (mr *MockInterfaceMessageMockRecorder) UnmarshalJSON(bytes interface{}) *gomock.Call

UnmarshalJSON indicates an expected call of UnmarshalJSON

type MockInterfaceP2P

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

MockInterfaceP2P is a mock of InterfaceP2P interface

func NewMockInterfaceP2P

func NewMockInterfaceP2P(ctrl *gomock.Controller) *MockInterfaceP2P

NewMockInterfaceP2P creates a new mock instance

func (*MockInterfaceP2P) Cfg

Cfg mocks base method

func (*MockInterfaceP2P) EXPECT

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

func (*MockInterfaceP2P) GetNumPeers

func (m *MockInterfaceP2P) GetNumPeers() (uint, error)

GetNumPeers mocks base method

func (*MockInterfaceP2P) GetSyncer

func (m *MockInterfaceP2P) GetSyncer() (types4.InterfaceSync, error)

GetSyncer mocks base method

func (*MockInterfaceP2P) IsStarted

func (m *MockInterfaceP2P) IsStarted() bool

IsStarted mocks base method

func (*MockInterfaceP2P) On

On mocks base method

func (*MockInterfaceP2P) Start

func (m *MockInterfaceP2P) Start() error

Start mocks base method

func (*MockInterfaceP2P) Stop

func (m *MockInterfaceP2P) Stop() error

Stop mocks base method

type MockInterfaceP2PMockRecorder

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

MockInterfaceP2PMockRecorder is the mock recorder for MockInterfaceP2P

func (*MockInterfaceP2PMockRecorder) Cfg

Cfg indicates an expected call of Cfg

func (*MockInterfaceP2PMockRecorder) GetNumPeers

func (mr *MockInterfaceP2PMockRecorder) GetNumPeers() *gomock.Call

GetNumPeers indicates an expected call of GetNumPeers

func (*MockInterfaceP2PMockRecorder) GetSyncer

func (mr *MockInterfaceP2PMockRecorder) GetSyncer() *gomock.Call

GetSyncer indicates an expected call of GetSyncer

func (*MockInterfaceP2PMockRecorder) IsStarted

func (mr *MockInterfaceP2PMockRecorder) IsStarted() *gomock.Call

IsStarted indicates an expected call of IsStarted

func (*MockInterfaceP2PMockRecorder) On

func (mr *MockInterfaceP2PMockRecorder) On(event, cb interface{}) *gomock.Call

On indicates an expected call of On

func (*MockInterfaceP2PMockRecorder) Start

Start indicates an expected call of Start

func (*MockInterfaceP2PMockRecorder) Stop

Stop indicates an expected call of Stop

type MockInterfacePeer

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

MockInterfacePeer is a mock of InterfacePeer interface

func NewMockInterfacePeer

func NewMockInterfacePeer(ctrl *gomock.Controller) *MockInterfacePeer

NewMockInterfacePeer creates a new mock instance

func (*MockInterfacePeer) AddConnection

func (m *MockInterfacePeer) AddConnection(conn go_libp2p_net.Conn, isWritable bool) (uint, error)

AddConnection mocks base method

func (*MockInterfacePeer) Cfg

Cfg mocks base method

func (*MockInterfacePeer) Disconnect

func (m *MockInterfacePeer) Disconnect() error

Disconnect mocks base method

func (*MockInterfacePeer) EXPECT

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

func (*MockInterfacePeer) GetBestNumber

func (m *MockInterfacePeer) GetBestNumber() *big.Int

GetBestNumber mocks base method

func (*MockInterfacePeer) GetChain

func (m *MockInterfacePeer) GetChain() (types4.InterfaceChains, error)

GetChain mocks base method

func (*MockInterfacePeer) GetID

func (m *MockInterfacePeer) GetID() string

GetID mocks base method

func (*MockInterfacePeer) GetNextID

func (m *MockInterfacePeer) GetNextID() uint

GetNextID mocks base method

func (*MockInterfacePeer) GetPeerInfo

GetPeerInfo mocks base method

func (*MockInterfacePeer) GetShortID

func (m *MockInterfacePeer) GetShortID() string

GetShortID mocks base method

func (*MockInterfacePeer) IsActive

func (m *MockInterfacePeer) IsActive() (bool, error)

IsActive mocks base method

func (*MockInterfacePeer) IsWritable

func (m *MockInterfacePeer) IsWritable() (bool, error)

IsWritable mocks base method

func (*MockInterfacePeer) On

On mocks base method

func (*MockInterfacePeer) Receive

func (m *MockInterfacePeer) Receive(stream go_libp2p_net.Stream) error

Receive mocks base method

func (*MockInterfacePeer) Send

Send mocks base method

func (*MockInterfacePeer) SetBest

func (m *MockInterfacePeer) SetBest(blockNumber *big.Int, hash []byte) error

SetBest mocks base method

type MockInterfacePeerMockRecorder

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

MockInterfacePeerMockRecorder is the mock recorder for MockInterfacePeer

func (*MockInterfacePeerMockRecorder) AddConnection

func (mr *MockInterfacePeerMockRecorder) AddConnection(conn, isWritable interface{}) *gomock.Call

AddConnection indicates an expected call of AddConnection

func (*MockInterfacePeerMockRecorder) Cfg

Cfg indicates an expected call of Cfg

func (*MockInterfacePeerMockRecorder) Disconnect

func (mr *MockInterfacePeerMockRecorder) Disconnect() *gomock.Call

Disconnect indicates an expected call of Disconnect

func (*MockInterfacePeerMockRecorder) GetBestNumber

func (mr *MockInterfacePeerMockRecorder) GetBestNumber() *gomock.Call

GetBestNumber indicates an expected call of GetBestNumber

func (*MockInterfacePeerMockRecorder) GetChain

func (mr *MockInterfacePeerMockRecorder) GetChain() *gomock.Call

GetChain indicates an expected call of GetChain

func (*MockInterfacePeerMockRecorder) GetID

GetID indicates an expected call of GetID

func (*MockInterfacePeerMockRecorder) GetNextID

func (mr *MockInterfacePeerMockRecorder) GetNextID() *gomock.Call

GetNextID indicates an expected call of GetNextID

func (*MockInterfacePeerMockRecorder) GetPeerInfo

func (mr *MockInterfacePeerMockRecorder) GetPeerInfo() *gomock.Call

GetPeerInfo indicates an expected call of GetPeerInfo

func (*MockInterfacePeerMockRecorder) GetShortID

func (mr *MockInterfacePeerMockRecorder) GetShortID() *gomock.Call

GetShortID indicates an expected call of GetShortID

func (*MockInterfacePeerMockRecorder) IsActive

func (mr *MockInterfacePeerMockRecorder) IsActive() *gomock.Call

IsActive indicates an expected call of IsActive

func (*MockInterfacePeerMockRecorder) IsWritable

func (mr *MockInterfacePeerMockRecorder) IsWritable() *gomock.Call

IsWritable indicates an expected call of IsWritable

func (*MockInterfacePeerMockRecorder) On

func (mr *MockInterfacePeerMockRecorder) On(event, cb interface{}) *gomock.Call

On indicates an expected call of On

func (*MockInterfacePeerMockRecorder) Receive

func (mr *MockInterfacePeerMockRecorder) Receive(stream interface{}) *gomock.Call

Receive indicates an expected call of Receive

func (*MockInterfacePeerMockRecorder) Send

func (mr *MockInterfacePeerMockRecorder) Send(msg interface{}) *gomock.Call

Send indicates an expected call of Send

func (*MockInterfacePeerMockRecorder) SetBest

func (mr *MockInterfacePeerMockRecorder) SetBest(blockNumber, hash interface{}) *gomock.Call

SetBest indicates an expected call of SetBest

type MockInterfacePeers

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

MockInterfacePeers is a mock of InterfacePeers interface

func NewMockInterfacePeers

func NewMockInterfacePeers(ctrl *gomock.Controller) *MockInterfacePeers

NewMockInterfacePeers creates a new mock instance

func (*MockInterfacePeers) Add

Add mocks base method

func (*MockInterfacePeers) Count

func (m *MockInterfacePeers) Count() (uint, error)

Count mocks base method

func (*MockInterfacePeers) CountAll

func (m *MockInterfacePeers) CountAll() (uint, error)

CountAll mocks base method

func (*MockInterfacePeers) EXPECT

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

func (*MockInterfacePeers) Get

Get mocks base method

func (*MockInterfacePeers) GetFromID

GetFromID mocks base method

func (*MockInterfacePeers) KnownPeers

func (m *MockInterfacePeers) KnownPeers() ([]*types4.KnownPeer, error)

KnownPeers mocks base method

func (*MockInterfacePeers) Log

func (m *MockInterfacePeers) Log(event types1.EventEnum, iface interface{}) error

Log mocks base method

func (*MockInterfacePeers) On

On mocks base method

type MockInterfacePeersMockRecorder

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

MockInterfacePeersMockRecorder is the mock recorder for MockInterfacePeers

func (*MockInterfacePeersMockRecorder) Add

func (mr *MockInterfacePeersMockRecorder) Add(pi interface{}) *gomock.Call

Add indicates an expected call of Add

func (*MockInterfacePeersMockRecorder) Count

Count indicates an expected call of Count

func (*MockInterfacePeersMockRecorder) CountAll

func (mr *MockInterfacePeersMockRecorder) CountAll() *gomock.Call

CountAll indicates an expected call of CountAll

func (*MockInterfacePeersMockRecorder) Get

func (mr *MockInterfacePeersMockRecorder) Get(pi interface{}) *gomock.Call

Get indicates an expected call of Get

func (*MockInterfacePeersMockRecorder) GetFromID

func (mr *MockInterfacePeersMockRecorder) GetFromID(id interface{}) *gomock.Call

GetFromID indicates an expected call of GetFromID

func (*MockInterfacePeersMockRecorder) KnownPeers

func (mr *MockInterfacePeersMockRecorder) KnownPeers() *gomock.Call

KnownPeers indicates an expected call of KnownPeers

func (*MockInterfacePeersMockRecorder) Log

func (mr *MockInterfacePeersMockRecorder) Log(event, iface interface{}) *gomock.Call

Log indicates an expected call of Log

func (*MockInterfacePeersMockRecorder) On

func (mr *MockInterfacePeersMockRecorder) On(event, cb interface{}) *gomock.Call

On indicates an expected call of On

type MockInterfaceRPC

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

MockInterfaceRPC is a mock of InterfaceRPC interface

func NewMockInterfaceRPC

func NewMockInterfaceRPC(ctrl *gomock.Controller) *MockInterfaceRPC

NewMockInterfaceRPC creates a new mock instance

func (*MockInterfaceRPC) EXPECT

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

type MockInterfaceRPCMockRecorder

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

MockInterfaceRPCMockRecorder is the mock recorder for MockInterfaceRPC

type MockInterfaceSync

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

MockInterfaceSync is a mock of InterfaceSync interface

func NewMockInterfaceSync

func NewMockInterfaceSync(ctrl *gomock.Controller) *MockInterfaceSync

NewMockInterfaceSync creates a new mock instance

func (*MockInterfaceSync) EXPECT

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

func (*MockInterfaceSync) On

On mocks base method

func (*MockInterfaceSync) PeerRequests

func (m *MockInterfaceSync) PeerRequests(pr types4.InterfacePeer) (types4.Requests, error)

PeerRequests mocks base method

func (*MockInterfaceSync) ProvideBlocks

func (m *MockInterfaceSync) ProvideBlocks(pr types4.InterfacePeer, request *types4.BlockRequest) error

ProvideBlocks mocks base method

func (*MockInterfaceSync) QueueBlocks

func (m *MockInterfaceSync) QueueBlocks(pr types4.InterfacePeer, response *types4.BlockResponse) error

QueueBlocks mocks base method

func (*MockInterfaceSync) RequestBlocks

func (m *MockInterfaceSync) RequestBlocks(pr types4.InterfacePeer) error

RequestBlocks mocks base method

type MockInterfaceSyncMockRecorder

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

MockInterfaceSyncMockRecorder is the mock recorder for MockInterfaceSync

func (*MockInterfaceSyncMockRecorder) On

func (mr *MockInterfaceSyncMockRecorder) On(event, cb interface{}) *gomock.Call

On indicates an expected call of On

func (*MockInterfaceSyncMockRecorder) PeerRequests

func (mr *MockInterfaceSyncMockRecorder) PeerRequests(pr interface{}) *gomock.Call

PeerRequests indicates an expected call of PeerRequests

func (*MockInterfaceSyncMockRecorder) ProvideBlocks

func (mr *MockInterfaceSyncMockRecorder) ProvideBlocks(pr, request interface{}) *gomock.Call

ProvideBlocks indicates an expected call of ProvideBlocks

func (*MockInterfaceSyncMockRecorder) QueueBlocks

func (mr *MockInterfaceSyncMockRecorder) QueueBlocks(pr, response interface{}) *gomock.Call

QueueBlocks indicates an expected call of QueueBlocks

func (*MockInterfaceSyncMockRecorder) RequestBlocks

func (mr *MockInterfaceSyncMockRecorder) RequestBlocks(pr interface{}) *gomock.Call

RequestBlocks indicates an expected call of RequestBlocks

type MockInterfaceTelemetry

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

MockInterfaceTelemetry is a mock of InterfaceTelemetry interface

func NewMockInterfaceTelemetry

func NewMockInterfaceTelemetry(ctrl *gomock.Controller) *MockInterfaceTelemetry

NewMockInterfaceTelemetry creates a new mock instance

func (*MockInterfaceTelemetry) EXPECT

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

type MockInterfaceTelemetryMockRecorder

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

MockInterfaceTelemetryMockRecorder is the mock recorder for MockInterfaceTelemetry

Jump to

Keyboard shortcuts

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