mocks

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: GPL-3.0 Imports: 15 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

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

MockLesServer is a mock of LesServer interface

func NewMockLesServer

func NewMockLesServer(ctrl *gomock.Controller) *MockLesServer

NewMockLesServer creates a new mock instance

func (*MockLesServer) EXPECT

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

func (*MockLesServer) Protocols

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

Protocols mocks base method

func (*MockLesServer) SetBloomBitsIndexer

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

SetBloomBitsIndexer mocks base method

func (*MockLesServer) Start

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

Start mocks base method

func (*MockLesServer) Stop

func (m *MockLesServer) Stop()

Stop mocks base method

type MockLesServerMockRecorder

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

MockLesServerMockRecorder is the mock recorder for MockLesServer

func (*MockLesServerMockRecorder) Protocols

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

Protocols indicates an expected call of Protocols

func (*MockLesServerMockRecorder) SetBloomBitsIndexer

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

SetBloomBitsIndexer indicates an expected call of SetBloomBitsIndexer

func (*MockLesServerMockRecorder) Start

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

Start indicates an expected call of Start

func (*MockLesServerMockRecorder) Stop

Stop indicates an expected call of Stop

type MockMiner

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

MockMiner is a mock of Miner interface

func NewMockMiner

func NewMockMiner(ctrl *gomock.Controller) *MockMiner

NewMockMiner creates a new mock instance

func (*MockMiner) EXPECT

func (m *MockMiner) EXPECT() *MockMinerMockRecorder

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

func (*MockMiner) HashRate

func (m *MockMiner) HashRate() int64

HashRate mocks base method

func (*MockMiner) Mining

func (m *MockMiner) Mining() bool

Mining mocks base method

func (*MockMiner) Pending

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

Pending mocks base method

func (*MockMiner) PendingBlock

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

PendingBlock mocks base method

func (*MockMiner) Register

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

Register mocks base method

func (*MockMiner) SetExtra

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

SetExtra mocks base method

func (*MockMiner) Start

func (m *MockMiner) Start()

Start mocks base method

func (*MockMiner) Stop

func (m *MockMiner) Stop()

Stop mocks base method

type MockMinerMockRecorder

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

MockMinerMockRecorder is the mock recorder for MockMiner

func (*MockMinerMockRecorder) HashRate

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

HashRate indicates an expected call of HashRate

func (*MockMinerMockRecorder) Mining

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

Mining indicates an expected call of Mining

func (*MockMinerMockRecorder) Pending

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

Pending indicates an expected call of Pending

func (*MockMinerMockRecorder) PendingBlock

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

PendingBlock indicates an expected call of PendingBlock

func (*MockMinerMockRecorder) Register

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

Register indicates an expected call of Register

func (*MockMinerMockRecorder) SetExtra

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

SetExtra indicates an expected call of SetExtra

func (*MockMinerMockRecorder) Start

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

Start indicates an expected call of Start

func (*MockMinerMockRecorder) Stop

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

Stop indicates an expected call of Stop

type MockProtocolManagerDownloader

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

MockProtocolManagerDownloader is a mock of ProtocolManagerDownloader interface.

func NewMockProtocolManagerDownloader

func NewMockProtocolManagerDownloader(ctrl *gomock.Controller) *MockProtocolManagerDownloader

NewMockProtocolManagerDownloader creates a new mock instance.

func (*MockProtocolManagerDownloader) Cancel

func (m *MockProtocolManagerDownloader) Cancel()

Cancel mocks base method.

func (*MockProtocolManagerDownloader) DeliverBodies

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

DeliverBodies mocks base method.

func (*MockProtocolManagerDownloader) DeliverHeaders

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

DeliverHeaders mocks base method.

func (*MockProtocolManagerDownloader) DeliverNodeData

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

DeliverNodeData mocks base method.

func (*MockProtocolManagerDownloader) DeliverReceipts

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

DeliverReceipts mocks base method.

func (*MockProtocolManagerDownloader) DeliverSnapPacket

func (m *MockProtocolManagerDownloader) DeliverSnapPacket(arg0 *snap.Peer, arg1 snap.Packet) error

DeliverSnapPacket mocks base method.

func (*MockProtocolManagerDownloader) DeliverStakingInfos

func (m *MockProtocolManagerDownloader) DeliverStakingInfos(arg0 string, arg1 []*reward.StakingInfo) error

DeliverStakingInfos mocks base method.

func (*MockProtocolManagerDownloader) EXPECT

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

func (*MockProtocolManagerDownloader) GetSnapSyncer

func (m *MockProtocolManagerDownloader) GetSnapSyncer() *snap.Syncer

GetSnapSyncer mocks base method.

func (*MockProtocolManagerDownloader) Progress

Progress mocks base method.

func (*MockProtocolManagerDownloader) RegisterPeer

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

RegisterPeer mocks base method.

func (*MockProtocolManagerDownloader) SyncStakingInfo

func (m *MockProtocolManagerDownloader) SyncStakingInfo(arg0 string, arg1, arg2 uint64) error

SyncStakingInfo mocks base method.

func (*MockProtocolManagerDownloader) SyncStakingInfoStatus

func (m *MockProtocolManagerDownloader) SyncStakingInfoStatus() *downloader.SyncingStatus

SyncStakingInfoStatus mocks base method.

func (*MockProtocolManagerDownloader) Synchronise

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

Synchronise mocks base method.

func (*MockProtocolManagerDownloader) Terminate

func (m *MockProtocolManagerDownloader) Terminate()

Terminate mocks base method.

func (*MockProtocolManagerDownloader) UnregisterPeer

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

UnregisterPeer mocks base method.

type MockProtocolManagerDownloaderMockRecorder

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

MockProtocolManagerDownloaderMockRecorder is the mock recorder for MockProtocolManagerDownloader.

func (*MockProtocolManagerDownloaderMockRecorder) Cancel

Cancel indicates an expected call of Cancel.

func (*MockProtocolManagerDownloaderMockRecorder) DeliverBodies

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

DeliverBodies indicates an expected call of DeliverBodies.

func (*MockProtocolManagerDownloaderMockRecorder) DeliverHeaders

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

DeliverHeaders indicates an expected call of DeliverHeaders.

func (*MockProtocolManagerDownloaderMockRecorder) DeliverNodeData

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

DeliverNodeData indicates an expected call of DeliverNodeData.

func (*MockProtocolManagerDownloaderMockRecorder) DeliverReceipts

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

DeliverReceipts indicates an expected call of DeliverReceipts.

func (*MockProtocolManagerDownloaderMockRecorder) DeliverSnapPacket

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

DeliverSnapPacket indicates an expected call of DeliverSnapPacket.

func (*MockProtocolManagerDownloaderMockRecorder) DeliverStakingInfos

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

DeliverStakingInfos indicates an expected call of DeliverStakingInfos.

func (*MockProtocolManagerDownloaderMockRecorder) GetSnapSyncer

GetSnapSyncer indicates an expected call of GetSnapSyncer.

func (*MockProtocolManagerDownloaderMockRecorder) Progress

Progress indicates an expected call of Progress.

func (*MockProtocolManagerDownloaderMockRecorder) RegisterPeer

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

RegisterPeer indicates an expected call of RegisterPeer.

func (*MockProtocolManagerDownloaderMockRecorder) SyncStakingInfo

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

SyncStakingInfo indicates an expected call of SyncStakingInfo.

func (*MockProtocolManagerDownloaderMockRecorder) SyncStakingInfoStatus

func (mr *MockProtocolManagerDownloaderMockRecorder) SyncStakingInfoStatus() *gomock.Call

SyncStakingInfoStatus indicates an expected call of SyncStakingInfoStatus.

func (*MockProtocolManagerDownloaderMockRecorder) Synchronise

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

Synchronise indicates an expected call of Synchronise.

func (*MockProtocolManagerDownloaderMockRecorder) Terminate

Terminate indicates an expected call of Terminate.

func (*MockProtocolManagerDownloaderMockRecorder) UnregisterPeer

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
y or Y : Canonical URL