mocks

package
v1.75.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueueProtocolAPI

type QueueProtocolAPI struct {
	mock.Mock
}

QueueProtocolAPI is an autogenerated mock type for the QueueProtocolAPI type

func NewQueueProtocolAPI added in v1.69.0

func NewQueueProtocolAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *QueueProtocolAPI

NewQueueProtocolAPI creates a new instance of QueueProtocolAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*QueueProtocolAPI) AddBlacklist added in v1.65.3

func (_m *QueueProtocolAPI) AddBlacklist(req *types.BlackPeer) (*types.Reply, error)

AddBlacklist provides a mock function with given fields: req

func (*QueueProtocolAPI) AddPushSubscribe added in v1.65.0

func (_m *QueueProtocolAPI) AddPushSubscribe(param *types.PushSubscribeReq) (*types.ReplySubscribePush, error)

AddPushSubscribe provides a mock function with given fields: param

func (*QueueProtocolAPI) Close

func (_m *QueueProtocolAPI) Close()

Close provides a mock function with given fields:

func (*QueueProtocolAPI) ClosePeer added in v1.65.3

func (_m *QueueProtocolAPI) ClosePeer(in *types.SetPeer) (*types.Reply, error)

ClosePeer provides a mock function with given fields: in

func (*QueueProtocolAPI) CloseQueue

func (_m *QueueProtocolAPI) CloseQueue() (*types.Reply, error)

CloseQueue provides a mock function with given fields:

func (*QueueProtocolAPI) DelBlacklist added in v1.65.3

func (_m *QueueProtocolAPI) DelBlacklist(req *types.BlackPeer) (*types.Reply, error)

DelBlacklist provides a mock function with given fields: req

func (*QueueProtocolAPI) DialPeer added in v1.65.3

func (_m *QueueProtocolAPI) DialPeer(in *types.SetPeer) (*types.Reply, error)

DialPeer provides a mock function with given fields: in

func (*QueueProtocolAPI) ExecWallet

func (_m *QueueProtocolAPI) ExecWallet(param *types.ChainExecutor) (types.Message, error)

ExecWallet provides a mock function with given fields: param

func (*QueueProtocolAPI) ExecWalletFunc

func (_m *QueueProtocolAPI) ExecWalletFunc(driver string, funcname string, param types.Message) (types.Message, error)

ExecWalletFunc provides a mock function with given fields: driver, funcname, param

func (*QueueProtocolAPI) GetAddrOverview

func (_m *QueueProtocolAPI) GetAddrOverview(param *types.ReqAddr) (*types.AddrOverview, error)

GetAddrOverview provides a mock function with given fields: param

func (*QueueProtocolAPI) GetBlockByHashes

func (_m *QueueProtocolAPI) GetBlockByHashes(param *types.ReqHashes) (*types.BlockDetails, error)

GetBlockByHashes provides a mock function with given fields: param

func (*QueueProtocolAPI) GetBlockBySeq

func (_m *QueueProtocolAPI) GetBlockBySeq(param *types.Int64) (*types.BlockSeq, error)

GetBlockBySeq provides a mock function with given fields: param

func (*QueueProtocolAPI) GetBlockHash

func (_m *QueueProtocolAPI) GetBlockHash(param *types.ReqInt) (*types.ReplyHash, error)

GetBlockHash provides a mock function with given fields: param

func (*QueueProtocolAPI) GetBlockOverview

func (_m *QueueProtocolAPI) GetBlockOverview(param *types.ReqHash) (*types.BlockOverview, error)

GetBlockOverview provides a mock function with given fields: param

func (*QueueProtocolAPI) GetBlockSequences

func (_m *QueueProtocolAPI) GetBlockSequences(param *types.ReqBlocks) (*types.BlockSequences, error)

GetBlockSequences provides a mock function with given fields: param

func (*QueueProtocolAPI) GetBlocks

func (_m *QueueProtocolAPI) GetBlocks(param *types.ReqBlocks) (*types.BlockDetails, error)

GetBlocks provides a mock function with given fields: param

func (*QueueProtocolAPI) GetConfig

func (_m *QueueProtocolAPI) GetConfig() *types.Chain33Config

GetConfig provides a mock function with given fields:

func (*QueueProtocolAPI) GetFinalizedBlock added in v1.69.0

func (_m *QueueProtocolAPI) GetFinalizedBlock() (*types.SnowChoice, error)

GetFinalizedBlock provides a mock function with given fields:

func (*QueueProtocolAPI) GetHeaders

func (_m *QueueProtocolAPI) GetHeaders(param *types.ReqBlocks) (*types.Headers, error)

GetHeaders provides a mock function with given fields: param

func (*QueueProtocolAPI) GetHighestBlockNum added in v1.67.3

func (_m *QueueProtocolAPI) GetHighestBlockNum(param *types.ReqNil) (*types.ReplyBlockHeight, error)

GetHighestBlockNum provides a mock function with given fields: param

func (*QueueProtocolAPI) GetLastBlockMainSequence

func (_m *QueueProtocolAPI) GetLastBlockMainSequence() (*types.Int64, error)

GetLastBlockMainSequence provides a mock function with given fields:

func (*QueueProtocolAPI) GetLastBlockSequence

func (_m *QueueProtocolAPI) GetLastBlockSequence() (*types.Int64, error)

GetLastBlockSequence provides a mock function with given fields:

func (*QueueProtocolAPI) GetLastHeader

func (_m *QueueProtocolAPI) GetLastHeader() (*types.Header, error)

GetLastHeader provides a mock function with given fields:

func (*QueueProtocolAPI) GetLastMempool

func (_m *QueueProtocolAPI) GetLastMempool() (*types.ReplyTxList, error)

GetLastMempool provides a mock function with given fields:

func (*QueueProtocolAPI) GetMainSequenceByHash

func (_m *QueueProtocolAPI) GetMainSequenceByHash(param *types.ReqHash) (*types.Int64, error)

GetMainSequenceByHash provides a mock function with given fields: param

func (*QueueProtocolAPI) GetMempool

func (_m *QueueProtocolAPI) GetMempool(req *types.ReqGetMempool) (*types.ReplyTxList, error)

GetMempool provides a mock function with given fields: req

func (*QueueProtocolAPI) GetNetInfo

func (_m *QueueProtocolAPI) GetNetInfo(param *types.P2PGetNetInfoReq) (*types.NodeNetInfo, error)

GetNetInfo provides a mock function with given fields: param

func (*QueueProtocolAPI) GetParaTxByHeight

func (_m *QueueProtocolAPI) GetParaTxByHeight(param *types.ReqParaTxByHeight) (*types.ParaTxDetails, error)

GetParaTxByHeight provides a mock function with given fields: param

func (*QueueProtocolAPI) GetParaTxByTitle

func (_m *QueueProtocolAPI) GetParaTxByTitle(param *types.ReqParaTxByTitle) (*types.ParaTxDetails, error)

GetParaTxByTitle provides a mock function with given fields: param

func (*QueueProtocolAPI) GetProperFee

func (_m *QueueProtocolAPI) GetProperFee(req *types.ReqProperFee) (*types.ReplyProperFee, error)

GetProperFee provides a mock function with given fields: req

func (*QueueProtocolAPI) GetPushSeqLastNum added in v1.65.0

func (_m *QueueProtocolAPI) GetPushSeqLastNum(param *types.ReqString) (*types.Int64, error)

GetPushSeqLastNum provides a mock function with given fields: param

func (*QueueProtocolAPI) GetSequenceByHash

func (_m *QueueProtocolAPI) GetSequenceByHash(param *types.ReqHash) (*types.Int64, error)

GetSequenceByHash provides a mock function with given fields: param

func (*QueueProtocolAPI) GetTransactionByAddr

func (_m *QueueProtocolAPI) GetTransactionByAddr(param *types.ReqAddr) (*types.ReplyTxInfos, error)

GetTransactionByAddr provides a mock function with given fields: param

func (*QueueProtocolAPI) GetTransactionByHash

func (_m *QueueProtocolAPI) GetTransactionByHash(param *types.ReqHashes) (*types.TransactionDetails, error)

GetTransactionByHash provides a mock function with given fields: param

func (*QueueProtocolAPI) GetTxList

func (_m *QueueProtocolAPI) GetTxList(param *types.TxHashList) (*types.ReplyTxList, error)

GetTxList provides a mock function with given fields: param

func (*QueueProtocolAPI) GetTxListByAddr added in v1.67.4

func (_m *QueueProtocolAPI) GetTxListByAddr(param *types.ReqAddrs) (*types.TransactionDetails, error)

GetTxListByAddr provides a mock function with given fields: param

func (*QueueProtocolAPI) IsNtpClockSync

func (_m *QueueProtocolAPI) IsNtpClockSync() (*types.Reply, error)

IsNtpClockSync provides a mock function with given fields:

func (*QueueProtocolAPI) IsSync

func (_m *QueueProtocolAPI) IsSync() (*types.Reply, error)

IsSync provides a mock function with given fields:

func (*QueueProtocolAPI) ListPushes added in v1.65.0

func (_m *QueueProtocolAPI) ListPushes() (*types.PushSubscribes, error)

ListPushes provides a mock function with given fields:

func (*QueueProtocolAPI) LoadParaTxByTitle

func (_m *QueueProtocolAPI) LoadParaTxByTitle(param *types.ReqHeightByTitle) (*types.ReplyHeightByTitle, error)

LoadParaTxByTitle provides a mock function with given fields: param

func (*QueueProtocolAPI) LocalBegin

func (_m *QueueProtocolAPI) LocalBegin(param *types.Int64) error

LocalBegin provides a mock function with given fields: param

func (*QueueProtocolAPI) LocalClose

func (_m *QueueProtocolAPI) LocalClose(param *types.Int64) error

LocalClose provides a mock function with given fields: param

func (*QueueProtocolAPI) LocalCommit

func (_m *QueueProtocolAPI) LocalCommit(param *types.Int64) error

LocalCommit provides a mock function with given fields: param

func (*QueueProtocolAPI) LocalGet

func (_m *QueueProtocolAPI) LocalGet(param *types.LocalDBGet) (*types.LocalReplyValue, error)

LocalGet provides a mock function with given fields: param

func (*QueueProtocolAPI) LocalList

func (_m *QueueProtocolAPI) LocalList(param *types.LocalDBList) (*types.LocalReplyValue, error)

LocalList provides a mock function with given fields: param

func (*QueueProtocolAPI) LocalNew

func (_m *QueueProtocolAPI) LocalNew(readOnly bool) (*types.Int64, error)

LocalNew provides a mock function with given fields: readOnly

func (*QueueProtocolAPI) LocalRollback

func (_m *QueueProtocolAPI) LocalRollback(param *types.Int64) error

LocalRollback provides a mock function with given fields: param

func (*QueueProtocolAPI) LocalSet

func (_m *QueueProtocolAPI) LocalSet(param *types.LocalDBSet) error

LocalSet provides a mock function with given fields: param

func (*QueueProtocolAPI) NetProtocols added in v1.65.0

func (_m *QueueProtocolAPI) NetProtocols(_a0 *types.ReqNil) (*types.NetProtocolInfos, error)

NetProtocols provides a mock function with given fields: _a0

func (*QueueProtocolAPI) NewMessage

func (_m *QueueProtocolAPI) NewMessage(topic string, msgid int64, data interface{}) *queue.Message

NewMessage provides a mock function with given fields: topic, msgid, data

func (*QueueProtocolAPI) Notify

func (_m *QueueProtocolAPI) Notify(topic string, ty int64, data interface{}) (*queue.Message, error)

Notify provides a mock function with given fields: topic, ty, data

func (*QueueProtocolAPI) PeerInfo

func (_m *QueueProtocolAPI) PeerInfo(param *types.P2PGetPeerReq) (*types.PeerList, error)

PeerInfo provides a mock function with given fields: param

func (*QueueProtocolAPI) Query

func (_m *QueueProtocolAPI) Query(driver string, funcname string, param types.Message) (types.Message, error)

Query provides a mock function with given fields: driver, funcname, param

func (*QueueProtocolAPI) QueryChain

func (_m *QueueProtocolAPI) QueryChain(param *types.ChainExecutor) (types.Message, error)

QueryChain provides a mock function with given fields: param

func (*QueueProtocolAPI) QueryConsensus

func (_m *QueueProtocolAPI) QueryConsensus(param *types.ChainExecutor) (types.Message, error)

QueryConsensus provides a mock function with given fields: param

func (*QueueProtocolAPI) QueryConsensusFunc

func (_m *QueueProtocolAPI) QueryConsensusFunc(driver string, funcname string, param types.Message) (types.Message, error)

QueryConsensusFunc provides a mock function with given fields: driver, funcname, param

func (*QueueProtocolAPI) QueryTx

func (_m *QueueProtocolAPI) QueryTx(param *types.ReqHash) (*types.TransactionDetail, error)

QueryTx provides a mock function with given fields: param

func (*QueueProtocolAPI) RemoveTxsByHashList added in v1.67.4

func (_m *QueueProtocolAPI) RemoveTxsByHashList(hashList *types.TxHashList) error

RemoveTxsByHashList provides a mock function with given fields: hashList

func (*QueueProtocolAPI) SendDelayTx added in v1.65.3

func (_m *QueueProtocolAPI) SendDelayTx(param *types.DelayTx, waitReply bool) (*types.Reply, error)

SendDelayTx provides a mock function with given fields: param, waitReply

func (*QueueProtocolAPI) SendTx

func (_m *QueueProtocolAPI) SendTx(param *types.Transaction) (*types.Reply, error)

SendTx provides a mock function with given fields: param

func (*QueueProtocolAPI) ShowBlacklist added in v1.65.3

func (_m *QueueProtocolAPI) ShowBlacklist(req *types.ReqNil) (*types.Blacklist, error)

ShowBlacklist provides a mock function with given fields: req

func (*QueueProtocolAPI) StoreCommit

func (_m *QueueProtocolAPI) StoreCommit(param *types.ReqHash) (*types.ReplyHash, error)

StoreCommit provides a mock function with given fields: param

func (*QueueProtocolAPI) StoreDel

func (_m *QueueProtocolAPI) StoreDel(param *types.StoreDel) (*types.ReplyHash, error)

StoreDel provides a mock function with given fields: param

func (*QueueProtocolAPI) StoreGet

func (_m *QueueProtocolAPI) StoreGet(_a0 *types.StoreGet) (*types.StoreReplyValue, error)

StoreGet provides a mock function with given fields: _a0

func (*QueueProtocolAPI) StoreGetTotalCoins

StoreGetTotalCoins provides a mock function with given fields: _a0

func (*QueueProtocolAPI) StoreList

func (_m *QueueProtocolAPI) StoreList(param *types.StoreList) (*types.StoreListReply, error)

StoreList provides a mock function with given fields: param

func (*QueueProtocolAPI) StoreMemSet

func (_m *QueueProtocolAPI) StoreMemSet(param *types.StoreSetWithSync) (*types.ReplyHash, error)

StoreMemSet provides a mock function with given fields: param

func (*QueueProtocolAPI) StoreRollback

func (_m *QueueProtocolAPI) StoreRollback(param *types.ReqHash) (*types.ReplyHash, error)

StoreRollback provides a mock function with given fields: param

func (*QueueProtocolAPI) StoreSet

func (_m *QueueProtocolAPI) StoreSet(param *types.StoreSetWithSync) (*types.ReplyHash, error)

StoreSet provides a mock function with given fields: param

func (*QueueProtocolAPI) Version

func (_m *QueueProtocolAPI) Version() (*types.VersionInfo, error)

Version provides a mock function with given fields:

Jump to

Keyboard shortcuts

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