mock_api

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package mock_api is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBackend

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

MockBackend is a mock of Backend interface

func NewMockBackend

func NewMockBackend(ctrl *gomock.Controller) *MockBackend

NewMockBackend creates a new mock instance

func (*MockBackend) AccountManager

func (m *MockBackend) AccountManager() accounts.AccountManager

AccountManager mocks base method

func (*MockBackend) BlockByNumber

func (m *MockBackend) BlockByNumber(arg0 context.Context, arg1 rpc.BlockNumber) (*types.Block, error)

BlockByNumber mocks base method

func (*MockBackend) ChainConfig

func (m *MockBackend) ChainConfig() *params.ChainConfig

ChainConfig mocks base method

func (*MockBackend) ChainDB

func (m *MockBackend) ChainDB() database.DBManager

ChainDB mocks base method

func (*MockBackend) CurrentBlock

func (m *MockBackend) CurrentBlock() *types.Block

CurrentBlock mocks base method

func (*MockBackend) EXPECT

func (m *MockBackend) EXPECT() *MockBackendMockRecorder

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

func (*MockBackend) EventMux

func (m *MockBackend) EventMux() *event.TypeMux

EventMux mocks base method

func (*MockBackend) GetBlock

func (m *MockBackend) GetBlock(arg0 context.Context, arg1 common.Hash) (*types.Block, error)

GetBlock mocks base method

func (*MockBackend) GetBlockReceipts

func (m *MockBackend) GetBlockReceipts(arg0 context.Context, arg1 common.Hash) types.Receipts

GetBlockReceipts mocks base method

func (*MockBackend) GetBlockReceiptsInCache

func (m *MockBackend) GetBlockReceiptsInCache(arg0 common.Hash) types.Receipts

GetBlockReceiptsInCache mocks base method

func (*MockBackend) GetEVM

func (m *MockBackend) GetEVM(arg0 context.Context, arg1 blockchain.Message, arg2 *state.StateDB, arg3 *types.Header, arg4 vm.Config) (*vm.EVM, func() error, error)

GetEVM mocks base method

func (*MockBackend) GetNonceInCache

func (m *MockBackend) GetNonceInCache(arg0 common.Address) (uint64, bool)

GetNonceInCache mocks base method

func (*MockBackend) GetPoolNonce

func (m *MockBackend) GetPoolNonce(arg0 context.Context, arg1 common.Address) uint64

GetPoolNonce mocks base method

func (*MockBackend) GetPoolTransaction

func (m *MockBackend) GetPoolTransaction(arg0 common.Hash) *types.Transaction

GetPoolTransaction mocks base method

func (*MockBackend) GetPoolTransactions

func (m *MockBackend) GetPoolTransactions() (types.Transactions, error)

GetPoolTransactions mocks base method

func (*MockBackend) GetTd

func (m *MockBackend) GetTd(arg0 common.Hash) *big.Int

GetTd mocks base method

func (*MockBackend) GetTxAndLookupInfo

func (m *MockBackend) GetTxAndLookupInfo(arg0 common.Hash) (*types.Transaction, common.Hash, uint64, uint64)

GetTxAndLookupInfo mocks base method

func (*MockBackend) GetTxAndLookupInfoInCache

func (m *MockBackend) GetTxAndLookupInfoInCache(arg0 common.Hash) (*types.Transaction, common.Hash, uint64, uint64)

GetTxAndLookupInfoInCache mocks base method

func (*MockBackend) GetTxLookupInfoAndReceipt

func (m *MockBackend) GetTxLookupInfoAndReceipt(arg0 context.Context, arg1 common.Hash) (*types.Transaction, common.Hash, uint64, uint64, *types.Receipt)

GetTxLookupInfoAndReceipt mocks base method

func (*MockBackend) GetTxLookupInfoAndReceiptInCache

func (m *MockBackend) GetTxLookupInfoAndReceiptInCache(arg0 common.Hash) (*types.Transaction, common.Hash, uint64, uint64, *types.Receipt)

GetTxLookupInfoAndReceiptInCache mocks base method

func (*MockBackend) HeaderByNumber

func (m *MockBackend) HeaderByNumber(arg0 context.Context, arg1 rpc.BlockNumber) (*types.Header, error)

HeaderByNumber mocks base method

func (*MockBackend) IsParallelDBWrite

func (m *MockBackend) IsParallelDBWrite() bool

IsParallelDBWrite mocks base method

func (*MockBackend) IsSenderTxHashIndexingEnabled

func (m *MockBackend) IsSenderTxHashIndexingEnabled() bool

IsSenderTxHashIndexingEnabled mocks base method

func (*MockBackend) Progress

func (m *MockBackend) Progress() klaytn.SyncProgress

Progress mocks base method

func (*MockBackend) ProtocolVersion

func (m *MockBackend) ProtocolVersion() int

ProtocolVersion mocks base method

func (*MockBackend) SendTx

func (m *MockBackend) SendTx(arg0 context.Context, arg1 *types.Transaction) error

SendTx mocks base method

func (*MockBackend) SetHead

func (m *MockBackend) SetHead(arg0 uint64)

SetHead mocks base method

func (*MockBackend) StateAndHeaderByNumber

func (m *MockBackend) StateAndHeaderByNumber(arg0 context.Context, arg1 rpc.BlockNumber) (*state.StateDB, *types.Header, error)

StateAndHeaderByNumber mocks base method

func (*MockBackend) Stats

func (m *MockBackend) Stats() (int, int)

Stats mocks base method

func (*MockBackend) SubscribeChainEvent

func (m *MockBackend) SubscribeChainEvent(arg0 chan<- blockchain.ChainEvent) event.Subscription

SubscribeChainEvent mocks base method

func (*MockBackend) SubscribeChainHeadEvent

func (m *MockBackend) SubscribeChainHeadEvent(arg0 chan<- blockchain.ChainHeadEvent) event.Subscription

SubscribeChainHeadEvent mocks base method

func (*MockBackend) SubscribeChainSideEvent

func (m *MockBackend) SubscribeChainSideEvent(arg0 chan<- blockchain.ChainSideEvent) event.Subscription

SubscribeChainSideEvent mocks base method

func (*MockBackend) SubscribeNewTxsEvent

func (m *MockBackend) SubscribeNewTxsEvent(arg0 chan<- blockchain.NewTxsEvent) event.Subscription

SubscribeNewTxsEvent mocks base method

func (*MockBackend) SuggestPrice

func (m *MockBackend) SuggestPrice(arg0 context.Context) (*big.Int, error)

SuggestPrice mocks base method

func (*MockBackend) TxPoolContent

TxPoolContent mocks base method

type MockBackendMockRecorder

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

MockBackendMockRecorder is the mock recorder for MockBackend

func (*MockBackendMockRecorder) AccountManager

func (mr *MockBackendMockRecorder) AccountManager() *gomock.Call

AccountManager indicates an expected call of AccountManager

func (*MockBackendMockRecorder) BlockByNumber

func (mr *MockBackendMockRecorder) BlockByNumber(arg0, arg1 interface{}) *gomock.Call

BlockByNumber indicates an expected call of BlockByNumber

func (*MockBackendMockRecorder) ChainConfig

func (mr *MockBackendMockRecorder) ChainConfig() *gomock.Call

ChainConfig indicates an expected call of ChainConfig

func (*MockBackendMockRecorder) ChainDB

func (mr *MockBackendMockRecorder) ChainDB() *gomock.Call

ChainDB indicates an expected call of ChainDB

func (*MockBackendMockRecorder) CurrentBlock

func (mr *MockBackendMockRecorder) CurrentBlock() *gomock.Call

CurrentBlock indicates an expected call of CurrentBlock

func (*MockBackendMockRecorder) EventMux

func (mr *MockBackendMockRecorder) EventMux() *gomock.Call

EventMux indicates an expected call of EventMux

func (*MockBackendMockRecorder) GetBlock

func (mr *MockBackendMockRecorder) GetBlock(arg0, arg1 interface{}) *gomock.Call

GetBlock indicates an expected call of GetBlock

func (*MockBackendMockRecorder) GetBlockReceipts

func (mr *MockBackendMockRecorder) GetBlockReceipts(arg0, arg1 interface{}) *gomock.Call

GetBlockReceipts indicates an expected call of GetBlockReceipts

func (*MockBackendMockRecorder) GetBlockReceiptsInCache

func (mr *MockBackendMockRecorder) GetBlockReceiptsInCache(arg0 interface{}) *gomock.Call

GetBlockReceiptsInCache indicates an expected call of GetBlockReceiptsInCache

func (*MockBackendMockRecorder) GetEVM

func (mr *MockBackendMockRecorder) GetEVM(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

GetEVM indicates an expected call of GetEVM

func (*MockBackendMockRecorder) GetNonceInCache

func (mr *MockBackendMockRecorder) GetNonceInCache(arg0 interface{}) *gomock.Call

GetNonceInCache indicates an expected call of GetNonceInCache

func (*MockBackendMockRecorder) GetPoolNonce

func (mr *MockBackendMockRecorder) GetPoolNonce(arg0, arg1 interface{}) *gomock.Call

GetPoolNonce indicates an expected call of GetPoolNonce

func (*MockBackendMockRecorder) GetPoolTransaction

func (mr *MockBackendMockRecorder) GetPoolTransaction(arg0 interface{}) *gomock.Call

GetPoolTransaction indicates an expected call of GetPoolTransaction

func (*MockBackendMockRecorder) GetPoolTransactions

func (mr *MockBackendMockRecorder) GetPoolTransactions() *gomock.Call

GetPoolTransactions indicates an expected call of GetPoolTransactions

func (*MockBackendMockRecorder) GetTd

func (mr *MockBackendMockRecorder) GetTd(arg0 interface{}) *gomock.Call

GetTd indicates an expected call of GetTd

func (*MockBackendMockRecorder) GetTxAndLookupInfo

func (mr *MockBackendMockRecorder) GetTxAndLookupInfo(arg0 interface{}) *gomock.Call

GetTxAndLookupInfo indicates an expected call of GetTxAndLookupInfo

func (*MockBackendMockRecorder) GetTxAndLookupInfoInCache

func (mr *MockBackendMockRecorder) GetTxAndLookupInfoInCache(arg0 interface{}) *gomock.Call

GetTxAndLookupInfoInCache indicates an expected call of GetTxAndLookupInfoInCache

func (*MockBackendMockRecorder) GetTxLookupInfoAndReceipt

func (mr *MockBackendMockRecorder) GetTxLookupInfoAndReceipt(arg0, arg1 interface{}) *gomock.Call

GetTxLookupInfoAndReceipt indicates an expected call of GetTxLookupInfoAndReceipt

func (*MockBackendMockRecorder) GetTxLookupInfoAndReceiptInCache

func (mr *MockBackendMockRecorder) GetTxLookupInfoAndReceiptInCache(arg0 interface{}) *gomock.Call

GetTxLookupInfoAndReceiptInCache indicates an expected call of GetTxLookupInfoAndReceiptInCache

func (*MockBackendMockRecorder) HeaderByNumber

func (mr *MockBackendMockRecorder) HeaderByNumber(arg0, arg1 interface{}) *gomock.Call

HeaderByNumber indicates an expected call of HeaderByNumber

func (*MockBackendMockRecorder) IsParallelDBWrite

func (mr *MockBackendMockRecorder) IsParallelDBWrite() *gomock.Call

IsParallelDBWrite indicates an expected call of IsParallelDBWrite

func (*MockBackendMockRecorder) IsSenderTxHashIndexingEnabled

func (mr *MockBackendMockRecorder) IsSenderTxHashIndexingEnabled() *gomock.Call

IsSenderTxHashIndexingEnabled indicates an expected call of IsSenderTxHashIndexingEnabled

func (*MockBackendMockRecorder) Progress

func (mr *MockBackendMockRecorder) Progress() *gomock.Call

Progress indicates an expected call of Progress

func (*MockBackendMockRecorder) ProtocolVersion

func (mr *MockBackendMockRecorder) ProtocolVersion() *gomock.Call

ProtocolVersion indicates an expected call of ProtocolVersion

func (*MockBackendMockRecorder) SendTx

func (mr *MockBackendMockRecorder) SendTx(arg0, arg1 interface{}) *gomock.Call

SendTx indicates an expected call of SendTx

func (*MockBackendMockRecorder) SetHead

func (mr *MockBackendMockRecorder) SetHead(arg0 interface{}) *gomock.Call

SetHead indicates an expected call of SetHead

func (*MockBackendMockRecorder) StateAndHeaderByNumber

func (mr *MockBackendMockRecorder) StateAndHeaderByNumber(arg0, arg1 interface{}) *gomock.Call

StateAndHeaderByNumber indicates an expected call of StateAndHeaderByNumber

func (*MockBackendMockRecorder) Stats

func (mr *MockBackendMockRecorder) Stats() *gomock.Call

Stats indicates an expected call of Stats

func (*MockBackendMockRecorder) SubscribeChainEvent

func (mr *MockBackendMockRecorder) SubscribeChainEvent(arg0 interface{}) *gomock.Call

SubscribeChainEvent indicates an expected call of SubscribeChainEvent

func (*MockBackendMockRecorder) SubscribeChainHeadEvent

func (mr *MockBackendMockRecorder) SubscribeChainHeadEvent(arg0 interface{}) *gomock.Call

SubscribeChainHeadEvent indicates an expected call of SubscribeChainHeadEvent

func (*MockBackendMockRecorder) SubscribeChainSideEvent

func (mr *MockBackendMockRecorder) SubscribeChainSideEvent(arg0 interface{}) *gomock.Call

SubscribeChainSideEvent indicates an expected call of SubscribeChainSideEvent

func (*MockBackendMockRecorder) SubscribeNewTxsEvent

func (mr *MockBackendMockRecorder) SubscribeNewTxsEvent(arg0 interface{}) *gomock.Call

SubscribeNewTxsEvent indicates an expected call of SubscribeNewTxsEvent

func (*MockBackendMockRecorder) SuggestPrice

func (mr *MockBackendMockRecorder) SuggestPrice(arg0 interface{}) *gomock.Call

SuggestPrice indicates an expected call of SuggestPrice

func (*MockBackendMockRecorder) TxPoolContent

func (mr *MockBackendMockRecorder) TxPoolContent() *gomock.Call

TxPoolContent indicates an expected call of TxPoolContent

Jump to

Keyboard shortcuts

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