mock_master

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2019 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mock_master is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockISlaveConn

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

MockISlaveConn is a mock of ISlaveConn interface

func NewMockISlaveConn

func NewMockISlaveConn(ctrl *gomock.Controller) *MockISlaveConn

NewMockISlaveConn creates a new mock instance

func (*MockISlaveConn) AddBlockListForSync

func (m *MockISlaveConn) AddBlockListForSync(request *rpc.AddBlockListForSyncRequest) (*rpc.ShardStatus, error)

AddBlockListForSync mocks base method

func (*MockISlaveConn) AddRootBlock

func (m *MockISlaveConn) AddRootBlock(rootBlock *types.RootBlock, expectSwitch bool) error

AddRootBlock mocks base method

func (*MockISlaveConn) AddTransaction

func (m *MockISlaveConn) AddTransaction(tx *types.Transaction) error

AddTransaction mocks base method

func (*MockISlaveConn) AddTransactions

func (m *MockISlaveConn) AddTransactions(request *p2p.NewTransactionList) (*rpc.HashList, error)

AddTransactions mocks base method

func (*MockISlaveConn) EXPECT

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

func (*MockISlaveConn) EstimateGas

func (m *MockISlaveConn) EstimateGas(tx *types.Transaction, fromAddress *account.Address) (uint32, error)

EstimateGas mocks base method

func (*MockISlaveConn) ExecuteTransaction

func (m *MockISlaveConn) ExecuteTransaction(tx *types.Transaction, fromAddress *account.Address, height *uint64) ([]byte, error)

ExecuteTransaction mocks base method

func (*MockISlaveConn) GasPrice

func (m *MockISlaveConn) GasPrice(branch account.Branch) (uint64, error)

GasPrice mocks base method

func (*MockISlaveConn) GenTx

func (m *MockISlaveConn) GenTx(numTxPerShard, xShardPercent uint32, tx *types.Transaction) error

GenTx mocks base method

func (*MockISlaveConn) GetAccountData

func (m *MockISlaveConn) GetAccountData(address *account.Address, height *uint64) (*rpc.GetAccountDataResponse, error)

GetAccountData mocks base method

func (*MockISlaveConn) GetCode

func (m *MockISlaveConn) GetCode(address *account.Address, height *uint64) ([]byte, error)

GetCode mocks base method

func (*MockISlaveConn) GetLogs

func (m *MockISlaveConn) GetLogs(branch account.Branch, address []account.Address, topics [][]common.Hash, startBlock, endBlock uint64) ([]*types.Log, error)

GetLogs mocks base method

func (*MockISlaveConn) GetMinorBlockByHash

func (m *MockISlaveConn) GetMinorBlockByHash(blockHash common.Hash, branch account.Branch) (*types.MinorBlock, error)

GetMinorBlockByHash mocks base method

func (*MockISlaveConn) GetMinorBlockByHeight

func (m *MockISlaveConn) GetMinorBlockByHeight(height uint64, branch account.Branch) (*types.MinorBlock, error)

GetMinorBlockByHeight mocks base method

func (*MockISlaveConn) GetMinorBlockHeaders

GetMinorBlockHeaders mocks base method

func (*MockISlaveConn) GetMinorBlocks

GetMinorBlocks mocks base method

func (*MockISlaveConn) GetShardMaskList

func (m *MockISlaveConn) GetShardMaskList() []*types.ChainMask

GetShardMaskList mocks base method

func (*MockISlaveConn) GetSlaveID

func (m *MockISlaveConn) GetSlaveID() string

GetSlaveID mocks base method

func (*MockISlaveConn) GetStorageAt

func (m *MockISlaveConn) GetStorageAt(address *account.Address, key common.Hash, height *uint64) (common.Hash, error)

GetStorageAt mocks base method

func (*MockISlaveConn) GetTransactionByHash

func (m *MockISlaveConn) GetTransactionByHash(txHash common.Hash, branch account.Branch) (*types.MinorBlock, uint32, error)

GetTransactionByHash mocks base method

func (*MockISlaveConn) GetTransactionReceipt

func (m *MockISlaveConn) GetTransactionReceipt(txHash common.Hash, branch account.Branch) (*types.MinorBlock, uint32, *types.Receipt, error)

GetTransactionReceipt mocks base method

func (*MockISlaveConn) GetTransactionsByAddress

func (m *MockISlaveConn) GetTransactionsByAddress(address *account.Address, start []byte, limit uint32) ([]*rpc.TransactionDetail, []byte, error)

GetTransactionsByAddress mocks base method

func (*MockISlaveConn) GetUnconfirmedHeaders

func (m *MockISlaveConn) GetUnconfirmedHeaders() (*rpc.GetUnconfirmedHeadersResponse, error)

GetUnconfirmedHeaders mocks base method

func (*MockISlaveConn) GetWork

func (m *MockISlaveConn) GetWork(branch account.Branch) (*consensus.MiningWork, error)

GetWork mocks base method

func (*MockISlaveConn) HandleNewMinorBlock

func (m *MockISlaveConn) HandleNewMinorBlock(request *p2p.NewBlockMinor) (bool, error)

HandleNewMinorBlock mocks base method

func (*MockISlaveConn) HandleNewTip

func (m *MockISlaveConn) HandleNewTip(request *rpc.HandleNewTipRequest) (bool, error)

HandleNewTip mocks base method

func (*MockISlaveConn) HasShard

func (m *MockISlaveConn) HasShard(fullShardID uint32) bool

HasShard mocks base method

func (*MockISlaveConn) HeartBeat

func (m *MockISlaveConn) HeartBeat() bool

HeartBeat mocks base method

func (*MockISlaveConn) MasterInfo

func (m *MockISlaveConn) MasterInfo(ip string, port uint16, rootTip *types.RootBlock) error

MasterInfo mocks base method

func (*MockISlaveConn) SendMiningConfigToSlaves

func (m *MockISlaveConn) SendMiningConfigToSlaves(artificialTxConfig *rpc.ArtificialTxConfig, mining bool) error

SendMiningConfigToSlaves mocks base method

func (*MockISlaveConn) SendPing

func (m *MockISlaveConn) SendPing() ([]byte, []*types.ChainMask, error)

SendPing mocks base method

func (*MockISlaveConn) SetMining

func (m *MockISlaveConn) SetMining(mining bool) error

SetMining mocks base method

func (*MockISlaveConn) SubmitWork

func (m *MockISlaveConn) SubmitWork(work *rpc.SubmitWorkRequest) (bool, error)

SubmitWork mocks base method

type MockISlaveConnMockRecorder

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

MockISlaveConnMockRecorder is the mock recorder for MockISlaveConn

func (*MockISlaveConnMockRecorder) AddBlockListForSync

func (mr *MockISlaveConnMockRecorder) AddBlockListForSync(request interface{}) *gomock.Call

AddBlockListForSync indicates an expected call of AddBlockListForSync

func (*MockISlaveConnMockRecorder) AddRootBlock

func (mr *MockISlaveConnMockRecorder) AddRootBlock(rootBlock, expectSwitch interface{}) *gomock.Call

AddRootBlock indicates an expected call of AddRootBlock

func (*MockISlaveConnMockRecorder) AddTransaction

func (mr *MockISlaveConnMockRecorder) AddTransaction(tx interface{}) *gomock.Call

AddTransaction indicates an expected call of AddTransaction

func (*MockISlaveConnMockRecorder) AddTransactions

func (mr *MockISlaveConnMockRecorder) AddTransactions(request interface{}) *gomock.Call

AddTransactions indicates an expected call of AddTransactions

func (*MockISlaveConnMockRecorder) EstimateGas

func (mr *MockISlaveConnMockRecorder) EstimateGas(tx, fromAddress interface{}) *gomock.Call

EstimateGas indicates an expected call of EstimateGas

func (*MockISlaveConnMockRecorder) ExecuteTransaction

func (mr *MockISlaveConnMockRecorder) ExecuteTransaction(tx, fromAddress, height interface{}) *gomock.Call

ExecuteTransaction indicates an expected call of ExecuteTransaction

func (*MockISlaveConnMockRecorder) GasPrice

func (mr *MockISlaveConnMockRecorder) GasPrice(branch interface{}) *gomock.Call

GasPrice indicates an expected call of GasPrice

func (*MockISlaveConnMockRecorder) GenTx

func (mr *MockISlaveConnMockRecorder) GenTx(numTxPerShard, xShardPercent, tx interface{}) *gomock.Call

GenTx indicates an expected call of GenTx

func (*MockISlaveConnMockRecorder) GetAccountData

func (mr *MockISlaveConnMockRecorder) GetAccountData(address, height interface{}) *gomock.Call

GetAccountData indicates an expected call of GetAccountData

func (*MockISlaveConnMockRecorder) GetCode

func (mr *MockISlaveConnMockRecorder) GetCode(address, height interface{}) *gomock.Call

GetCode indicates an expected call of GetCode

func (*MockISlaveConnMockRecorder) GetLogs

func (mr *MockISlaveConnMockRecorder) GetLogs(branch, address, topics, startBlock, endBlock interface{}) *gomock.Call

GetLogs indicates an expected call of GetLogs

func (*MockISlaveConnMockRecorder) GetMinorBlockByHash

func (mr *MockISlaveConnMockRecorder) GetMinorBlockByHash(blockHash, branch interface{}) *gomock.Call

GetMinorBlockByHash indicates an expected call of GetMinorBlockByHash

func (*MockISlaveConnMockRecorder) GetMinorBlockByHeight

func (mr *MockISlaveConnMockRecorder) GetMinorBlockByHeight(height, branch interface{}) *gomock.Call

GetMinorBlockByHeight indicates an expected call of GetMinorBlockByHeight

func (*MockISlaveConnMockRecorder) GetMinorBlockHeaders

func (mr *MockISlaveConnMockRecorder) GetMinorBlockHeaders(request interface{}) *gomock.Call

GetMinorBlockHeaders indicates an expected call of GetMinorBlockHeaders

func (*MockISlaveConnMockRecorder) GetMinorBlocks

func (mr *MockISlaveConnMockRecorder) GetMinorBlocks(request interface{}) *gomock.Call

GetMinorBlocks indicates an expected call of GetMinorBlocks

func (*MockISlaveConnMockRecorder) GetShardMaskList

func (mr *MockISlaveConnMockRecorder) GetShardMaskList() *gomock.Call

GetShardMaskList indicates an expected call of GetShardMaskList

func (*MockISlaveConnMockRecorder) GetSlaveID

func (mr *MockISlaveConnMockRecorder) GetSlaveID() *gomock.Call

GetSlaveID indicates an expected call of GetSlaveID

func (*MockISlaveConnMockRecorder) GetStorageAt

func (mr *MockISlaveConnMockRecorder) GetStorageAt(address, key, height interface{}) *gomock.Call

GetStorageAt indicates an expected call of GetStorageAt

func (*MockISlaveConnMockRecorder) GetTransactionByHash

func (mr *MockISlaveConnMockRecorder) GetTransactionByHash(txHash, branch interface{}) *gomock.Call

GetTransactionByHash indicates an expected call of GetTransactionByHash

func (*MockISlaveConnMockRecorder) GetTransactionReceipt

func (mr *MockISlaveConnMockRecorder) GetTransactionReceipt(txHash, branch interface{}) *gomock.Call

GetTransactionReceipt indicates an expected call of GetTransactionReceipt

func (*MockISlaveConnMockRecorder) GetTransactionsByAddress

func (mr *MockISlaveConnMockRecorder) GetTransactionsByAddress(address, start, limit interface{}) *gomock.Call

GetTransactionsByAddress indicates an expected call of GetTransactionsByAddress

func (*MockISlaveConnMockRecorder) GetUnconfirmedHeaders

func (mr *MockISlaveConnMockRecorder) GetUnconfirmedHeaders() *gomock.Call

GetUnconfirmedHeaders indicates an expected call of GetUnconfirmedHeaders

func (*MockISlaveConnMockRecorder) GetWork

func (mr *MockISlaveConnMockRecorder) GetWork(branch interface{}) *gomock.Call

GetWork indicates an expected call of GetWork

func (*MockISlaveConnMockRecorder) HandleNewMinorBlock

func (mr *MockISlaveConnMockRecorder) HandleNewMinorBlock(request interface{}) *gomock.Call

HandleNewMinorBlock indicates an expected call of HandleNewMinorBlock

func (*MockISlaveConnMockRecorder) HandleNewTip

func (mr *MockISlaveConnMockRecorder) HandleNewTip(request interface{}) *gomock.Call

HandleNewTip indicates an expected call of HandleNewTip

func (*MockISlaveConnMockRecorder) HasShard

func (mr *MockISlaveConnMockRecorder) HasShard(fullShardID interface{}) *gomock.Call

HasShard indicates an expected call of HasShard

func (*MockISlaveConnMockRecorder) HeartBeat

func (mr *MockISlaveConnMockRecorder) HeartBeat() *gomock.Call

HeartBeat indicates an expected call of HeartBeat

func (*MockISlaveConnMockRecorder) MasterInfo

func (mr *MockISlaveConnMockRecorder) MasterInfo(ip, port, rootTip interface{}) *gomock.Call

MasterInfo indicates an expected call of MasterInfo

func (*MockISlaveConnMockRecorder) SendMiningConfigToSlaves

func (mr *MockISlaveConnMockRecorder) SendMiningConfigToSlaves(artificialTxConfig, mining interface{}) *gomock.Call

SendMiningConfigToSlaves indicates an expected call of SendMiningConfigToSlaves

func (*MockISlaveConnMockRecorder) SendPing

func (mr *MockISlaveConnMockRecorder) SendPing() *gomock.Call

SendPing indicates an expected call of SendPing

func (*MockISlaveConnMockRecorder) SetMining

func (mr *MockISlaveConnMockRecorder) SetMining(mining interface{}) *gomock.Call

SetMining indicates an expected call of SetMining

func (*MockISlaveConnMockRecorder) SubmitWork

func (mr *MockISlaveConnMockRecorder) SubmitWork(work interface{}) *gomock.Call

SubmitWork indicates an expected call of SubmitWork

type MockShardConnForP2P

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

MockShardConnForP2P is a mock of ShardConnForP2P interface

func NewMockShardConnForP2P

func NewMockShardConnForP2P(ctrl *gomock.Controller) *MockShardConnForP2P

NewMockShardConnForP2P creates a new mock instance

func (*MockShardConnForP2P) AddBlockListForSync

func (m *MockShardConnForP2P) AddBlockListForSync(request *rpc.AddBlockListForSyncRequest) (*rpc.ShardStatus, error)

AddBlockListForSync mocks base method

func (*MockShardConnForP2P) AddTransactions

func (m *MockShardConnForP2P) AddTransactions(request *p2p.NewTransactionList) (*rpc.HashList, error)

AddTransactions mocks base method

func (*MockShardConnForP2P) EXPECT

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

func (*MockShardConnForP2P) GetMinorBlockHeaders

GetMinorBlockHeaders mocks base method

func (*MockShardConnForP2P) GetMinorBlocks

GetMinorBlocks mocks base method

func (*MockShardConnForP2P) HandleNewMinorBlock

func (m *MockShardConnForP2P) HandleNewMinorBlock(request *p2p.NewBlockMinor) (bool, error)

HandleNewMinorBlock mocks base method

func (*MockShardConnForP2P) HandleNewTip

func (m *MockShardConnForP2P) HandleNewTip(request *rpc.HandleNewTipRequest) (bool, error)

HandleNewTip mocks base method

type MockShardConnForP2PMockRecorder

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

MockShardConnForP2PMockRecorder is the mock recorder for MockShardConnForP2P

func (*MockShardConnForP2PMockRecorder) AddBlockListForSync

func (mr *MockShardConnForP2PMockRecorder) AddBlockListForSync(request interface{}) *gomock.Call

AddBlockListForSync indicates an expected call of AddBlockListForSync

func (*MockShardConnForP2PMockRecorder) AddTransactions

func (mr *MockShardConnForP2PMockRecorder) AddTransactions(request interface{}) *gomock.Call

AddTransactions indicates an expected call of AddTransactions

func (*MockShardConnForP2PMockRecorder) GetMinorBlockHeaders

func (mr *MockShardConnForP2PMockRecorder) GetMinorBlockHeaders(request interface{}) *gomock.Call

GetMinorBlockHeaders indicates an expected call of GetMinorBlockHeaders

func (*MockShardConnForP2PMockRecorder) GetMinorBlocks

func (mr *MockShardConnForP2PMockRecorder) GetMinorBlocks(request interface{}) *gomock.Call

GetMinorBlocks indicates an expected call of GetMinorBlocks

func (*MockShardConnForP2PMockRecorder) HandleNewMinorBlock

func (mr *MockShardConnForP2PMockRecorder) HandleNewMinorBlock(request interface{}) *gomock.Call

HandleNewMinorBlock indicates an expected call of HandleNewMinorBlock

func (*MockShardConnForP2PMockRecorder) HandleNewTip

func (mr *MockShardConnForP2PMockRecorder) HandleNewTip(request interface{}) *gomock.Call

HandleNewTip indicates an expected call of HandleNewTip

Jump to

Keyboard shortcuts

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