mocks

package
Version: v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockLesServer added in v1.3.0

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

MockLesServer is a mock of LesServer interface

func NewMockLesServer added in v1.3.0

func NewMockLesServer(ctrl *gomock.Controller) *MockLesServer

NewMockLesServer creates a new mock instance

func (*MockLesServer) EXPECT added in v1.3.0

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

func (*MockLesServer) Protocols added in v1.3.0

func (m *MockLesServer) Protocols() []p2p.Protocol

Protocols mocks base method

func (*MockLesServer) SetBloomBitsIndexer added in v1.3.0

func (m *MockLesServer) SetBloomBitsIndexer(arg0 *blockchain.ChainIndexer)

SetBloomBitsIndexer mocks base method

func (*MockLesServer) Start added in v1.3.0

func (m *MockLesServer) Start(arg0 p2p.Server)

Start mocks base method

func (*MockLesServer) Stop added in v1.3.0

func (m *MockLesServer) Stop()

Stop mocks base method

type MockLesServerMockRecorder added in v1.3.0

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

MockLesServerMockRecorder is the mock recorder for MockLesServer

func (*MockLesServerMockRecorder) Protocols added in v1.3.0

func (mr *MockLesServerMockRecorder) Protocols() *gomock.Call

Protocols indicates an expected call of Protocols

func (*MockLesServerMockRecorder) SetBloomBitsIndexer added in v1.3.0

func (mr *MockLesServerMockRecorder) SetBloomBitsIndexer(arg0 interface{}) *gomock.Call

SetBloomBitsIndexer indicates an expected call of SetBloomBitsIndexer

func (*MockLesServerMockRecorder) Start added in v1.3.0

func (mr *MockLesServerMockRecorder) Start(arg0 interface{}) *gomock.Call

Start indicates an expected call of Start

func (*MockLesServerMockRecorder) Stop added in v1.3.0

Stop indicates an expected call of Stop

type MockMiner added in v1.3.0

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

MockMiner is a mock of Miner interface

func NewMockMiner added in v1.3.0

func NewMockMiner(ctrl *gomock.Controller) *MockMiner

NewMockMiner creates a new mock instance

func (*MockMiner) EXPECT added in v1.3.0

func (m *MockMiner) EXPECT() *MockMinerMockRecorder

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

func (*MockMiner) HashRate added in v1.3.0

func (m *MockMiner) HashRate() int64

HashRate mocks base method

func (*MockMiner) Mining added in v1.3.0

func (m *MockMiner) Mining() bool

Mining mocks base method

func (*MockMiner) Pending added in v1.3.0

func (m *MockMiner) Pending() (*types.Block, *state.StateDB)

Pending mocks base method

func (*MockMiner) PendingBlock added in v1.3.0

func (m *MockMiner) PendingBlock() *types.Block

PendingBlock mocks base method

func (*MockMiner) Register added in v1.3.0

func (m *MockMiner) Register(arg0 work.Agent)

Register mocks base method

func (*MockMiner) SetExtra added in v1.3.0

func (m *MockMiner) SetExtra(arg0 []byte) error

SetExtra mocks base method

func (*MockMiner) Start added in v1.3.0

func (m *MockMiner) Start()

Start mocks base method

func (*MockMiner) Stop added in v1.3.0

func (m *MockMiner) Stop()

Stop mocks base method

type MockMinerMockRecorder added in v1.3.0

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

MockMinerMockRecorder is the mock recorder for MockMiner

func (*MockMinerMockRecorder) HashRate added in v1.3.0

func (mr *MockMinerMockRecorder) HashRate() *gomock.Call

HashRate indicates an expected call of HashRate

func (*MockMinerMockRecorder) Mining added in v1.3.0

func (mr *MockMinerMockRecorder) Mining() *gomock.Call

Mining indicates an expected call of Mining

func (*MockMinerMockRecorder) Pending added in v1.3.0

func (mr *MockMinerMockRecorder) Pending() *gomock.Call

Pending indicates an expected call of Pending

func (*MockMinerMockRecorder) PendingBlock added in v1.3.0

func (mr *MockMinerMockRecorder) PendingBlock() *gomock.Call

PendingBlock indicates an expected call of PendingBlock

func (*MockMinerMockRecorder) Register added in v1.3.0

func (mr *MockMinerMockRecorder) Register(arg0 interface{}) *gomock.Call

Register indicates an expected call of Register

func (*MockMinerMockRecorder) SetExtra added in v1.3.0

func (mr *MockMinerMockRecorder) SetExtra(arg0 interface{}) *gomock.Call

SetExtra indicates an expected call of SetExtra

func (*MockMinerMockRecorder) Start added in v1.3.0

func (mr *MockMinerMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start

func (*MockMinerMockRecorder) Stop added in v1.3.0

func (mr *MockMinerMockRecorder) Stop() *gomock.Call

Stop indicates an expected call of Stop

type MockProtocolManagerDownloader added in v1.3.0

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

MockProtocolManagerDownloader is a mock of ProtocolManagerDownloader interface

func NewMockProtocolManagerDownloader added in v1.3.0

func NewMockProtocolManagerDownloader(ctrl *gomock.Controller) *MockProtocolManagerDownloader

NewMockProtocolManagerDownloader creates a new mock instance

func (*MockProtocolManagerDownloader) DeliverBodies added in v1.3.0

func (m *MockProtocolManagerDownloader) DeliverBodies(arg0 string, arg1 [][]*types.Transaction) error

DeliverBodies mocks base method

func (*MockProtocolManagerDownloader) DeliverHeaders added in v1.3.0

func (m *MockProtocolManagerDownloader) DeliverHeaders(arg0 string, arg1 []*types.Header) error

DeliverHeaders mocks base method

func (*MockProtocolManagerDownloader) DeliverNodeData added in v1.3.0

func (m *MockProtocolManagerDownloader) DeliverNodeData(arg0 string, arg1 [][]byte) error

DeliverNodeData mocks base method

func (*MockProtocolManagerDownloader) DeliverReceipts added in v1.3.0

func (m *MockProtocolManagerDownloader) DeliverReceipts(arg0 string, arg1 [][]*types.Receipt) error

DeliverReceipts mocks base method

func (*MockProtocolManagerDownloader) EXPECT added in v1.3.0

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

func (*MockProtocolManagerDownloader) Progress added in v1.3.0

Progress mocks base method

func (*MockProtocolManagerDownloader) RegisterPeer added in v1.3.0

func (m *MockProtocolManagerDownloader) RegisterPeer(arg0 string, arg1 int, arg2 downloader.Peer) error

RegisterPeer mocks base method

func (*MockProtocolManagerDownloader) Synchronise added in v1.3.0

func (m *MockProtocolManagerDownloader) Synchronise(arg0 string, arg1 common.Hash, arg2 *big.Int, arg3 downloader.SyncMode) error

Synchronise mocks base method

func (*MockProtocolManagerDownloader) Terminate added in v1.3.0

func (m *MockProtocolManagerDownloader) Terminate()

Terminate mocks base method

func (*MockProtocolManagerDownloader) UnregisterPeer added in v1.3.0

func (m *MockProtocolManagerDownloader) UnregisterPeer(arg0 string) error

UnregisterPeer mocks base method

type MockProtocolManagerDownloaderMockRecorder added in v1.3.0

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

MockProtocolManagerDownloaderMockRecorder is the mock recorder for MockProtocolManagerDownloader

func (*MockProtocolManagerDownloaderMockRecorder) DeliverBodies added in v1.3.0

func (mr *MockProtocolManagerDownloaderMockRecorder) DeliverBodies(arg0, arg1 interface{}) *gomock.Call

DeliverBodies indicates an expected call of DeliverBodies

func (*MockProtocolManagerDownloaderMockRecorder) DeliverHeaders added in v1.3.0

func (mr *MockProtocolManagerDownloaderMockRecorder) DeliverHeaders(arg0, arg1 interface{}) *gomock.Call

DeliverHeaders indicates an expected call of DeliverHeaders

func (*MockProtocolManagerDownloaderMockRecorder) DeliverNodeData added in v1.3.0

func (mr *MockProtocolManagerDownloaderMockRecorder) DeliverNodeData(arg0, arg1 interface{}) *gomock.Call

DeliverNodeData indicates an expected call of DeliverNodeData

func (*MockProtocolManagerDownloaderMockRecorder) DeliverReceipts added in v1.3.0

func (mr *MockProtocolManagerDownloaderMockRecorder) DeliverReceipts(arg0, arg1 interface{}) *gomock.Call

DeliverReceipts indicates an expected call of DeliverReceipts

func (*MockProtocolManagerDownloaderMockRecorder) Progress added in v1.3.0

Progress indicates an expected call of Progress

func (*MockProtocolManagerDownloaderMockRecorder) RegisterPeer added in v1.3.0

func (mr *MockProtocolManagerDownloaderMockRecorder) RegisterPeer(arg0, arg1, arg2 interface{}) *gomock.Call

RegisterPeer indicates an expected call of RegisterPeer

func (*MockProtocolManagerDownloaderMockRecorder) Synchronise added in v1.3.0

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

Synchronise indicates an expected call of Synchronise

func (*MockProtocolManagerDownloaderMockRecorder) Terminate added in v1.3.0

Terminate indicates an expected call of Terminate

func (*MockProtocolManagerDownloaderMockRecorder) UnregisterPeer added in v1.3.0

func (mr *MockProtocolManagerDownloaderMockRecorder) UnregisterPeer(arg0 interface{}) *gomock.Call

UnregisterPeer indicates an expected call of UnregisterPeer

type MockProtocolManagerFetcher

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

MockProtocolManagerFetcher is a mock of ProtocolManagerFetcher interface

func NewMockProtocolManagerFetcher

func NewMockProtocolManagerFetcher(ctrl *gomock.Controller) *MockProtocolManagerFetcher

NewMockProtocolManagerFetcher creates a new mock instance

func (*MockProtocolManagerFetcher) EXPECT

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

func (*MockProtocolManagerFetcher) Enqueue

func (m *MockProtocolManagerFetcher) Enqueue(arg0 string, arg1 *types.Block) error

Enqueue mocks base method

func (*MockProtocolManagerFetcher) FilterBodies

func (m *MockProtocolManagerFetcher) FilterBodies(arg0 string, arg1 [][]*types.Transaction, arg2 time.Time) [][]*types.Transaction

FilterBodies mocks base method

func (*MockProtocolManagerFetcher) FilterHeaders

func (m *MockProtocolManagerFetcher) FilterHeaders(arg0 string, arg1 []*types.Header, arg2 time.Time) []*types.Header

FilterHeaders mocks base method

func (*MockProtocolManagerFetcher) Notify

Notify mocks base method

func (*MockProtocolManagerFetcher) Start

func (m *MockProtocolManagerFetcher) Start()

Start mocks base method

func (*MockProtocolManagerFetcher) Stop

func (m *MockProtocolManagerFetcher) Stop()

Stop mocks base method

type MockProtocolManagerFetcherMockRecorder

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

MockProtocolManagerFetcherMockRecorder is the mock recorder for MockProtocolManagerFetcher

func (*MockProtocolManagerFetcherMockRecorder) Enqueue

func (mr *MockProtocolManagerFetcherMockRecorder) Enqueue(arg0, arg1 interface{}) *gomock.Call

Enqueue indicates an expected call of Enqueue

func (*MockProtocolManagerFetcherMockRecorder) FilterBodies

func (mr *MockProtocolManagerFetcherMockRecorder) FilterBodies(arg0, arg1, arg2 interface{}) *gomock.Call

FilterBodies indicates an expected call of FilterBodies

func (*MockProtocolManagerFetcherMockRecorder) FilterHeaders

func (mr *MockProtocolManagerFetcherMockRecorder) FilterHeaders(arg0, arg1, arg2 interface{}) *gomock.Call

FilterHeaders indicates an expected call of FilterHeaders

func (*MockProtocolManagerFetcherMockRecorder) Notify

func (mr *MockProtocolManagerFetcherMockRecorder) Notify(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

Notify indicates an expected call of Notify

func (*MockProtocolManagerFetcherMockRecorder) Start

Start indicates an expected call of Start

func (*MockProtocolManagerFetcherMockRecorder) Stop

Stop indicates an expected call of Stop

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL