iotex-core: github.com/iotexproject/iotex-core/test/mock/mock_blockchain Index | Files

package mock_blockchain

import "github.com/iotexproject/iotex-core/test/mock/mock_blockchain"

Package mock_blockchain is a generated GoMock package.

Index

Package Files

mock_blockchain.go

type MockBlockchain Uses

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

MockBlockchain is a mock of Blockchain interface

func NewMockBlockchain Uses

func NewMockBlockchain(ctrl *gomock.Controller) *MockBlockchain

NewMockBlockchain creates a new mock instance

func (*MockBlockchain) AddSubscriber Uses

func (m *MockBlockchain) AddSubscriber(arg0 blockchain.BlockCreationSubscriber) error

AddSubscriber mocks base method

func (*MockBlockchain) Balance Uses

func (m *MockBlockchain) Balance(addr string) (*big.Int, error)

Balance mocks base method

func (*MockBlockchain) BlockFooterByHash Uses

func (m *MockBlockchain) BlockFooterByHash(h hash.Hash256) (*block.Footer, error)

BlockFooterByHash mocks base method

func (*MockBlockchain) BlockFooterByHeight Uses

func (m *MockBlockchain) BlockFooterByHeight(height uint64) (*block.Footer, error)

BlockFooterByHeight mocks base method

func (*MockBlockchain) BlockHeaderByHash Uses

func (m *MockBlockchain) BlockHeaderByHash(h hash.Hash256) (*block.Header, error)

BlockHeaderByHash mocks base method

func (*MockBlockchain) BlockHeaderByHeight Uses

func (m *MockBlockchain) BlockHeaderByHeight(height uint64) (*block.Header, error)

BlockHeaderByHeight mocks base method

func (*MockBlockchain) CandidatesByHeight Uses

func (m *MockBlockchain) CandidatesByHeight(height uint64) ([]*state.Candidate, error)

CandidatesByHeight mocks base method

func (*MockBlockchain) ChainAddress Uses

func (m *MockBlockchain) ChainAddress() string

ChainAddress mocks base method

func (*MockBlockchain) ChainID Uses

func (m *MockBlockchain) ChainID() uint32

ChainID mocks base method

func (*MockBlockchain) CommitBlock Uses

func (m *MockBlockchain) CommitBlock(blk *block.Block) error

CommitBlock mocks base method

func (*MockBlockchain) CreateState Uses

func (m *MockBlockchain) CreateState(addr string, init *big.Int) (*state.Account, error)

CreateState mocks base method

func (*MockBlockchain) EXPECT Uses

func (m *MockBlockchain) EXPECT() *MockBlockchainMockRecorder

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

func (*MockBlockchain) ExecuteContractRead Uses

func (m *MockBlockchain) ExecuteContractRead(caller address.Address, ex *action.Execution) ([]byte, *action.Receipt, error)

ExecuteContractRead mocks base method

func (*MockBlockchain) GenesisTimestamp Uses

func (m *MockBlockchain) GenesisTimestamp() int64

GenesisTimestamp mocks base method

func (*MockBlockchain) GetActionByActionHash Uses

func (m *MockBlockchain) GetActionByActionHash(h hash.Hash256) (action.SealedEnvelope, error)

GetActionByActionHash mocks base method

func (*MockBlockchain) GetActionCountByAddress Uses

func (m *MockBlockchain) GetActionCountByAddress(address string) (uint64, error)

GetActionCountByAddress mocks base method

func (*MockBlockchain) GetActionHashFromIndex Uses

func (m *MockBlockchain) GetActionHashFromIndex(index uint64) (hash.Hash256, error)

GetActionHashFromIndex mocks base method

func (*MockBlockchain) GetActionsFromAddress Uses

func (m *MockBlockchain) GetActionsFromAddress(address string) ([]hash.Hash256, error)

GetActionsFromAddress mocks base method

func (*MockBlockchain) GetActionsToAddress Uses

func (m *MockBlockchain) GetActionsToAddress(address string) ([]hash.Hash256, error)

GetActionsToAddress mocks base method

func (*MockBlockchain) GetBlockByHash Uses

func (m *MockBlockchain) GetBlockByHash(h hash.Hash256) (*block.Block, error)

GetBlockByHash mocks base method

func (*MockBlockchain) GetBlockByHeight Uses

func (m *MockBlockchain) GetBlockByHeight(height uint64) (*block.Block, error)

GetBlockByHeight mocks base method

func (*MockBlockchain) GetBlockHashByActionHash Uses

func (m *MockBlockchain) GetBlockHashByActionHash(h hash.Hash256) (hash.Hash256, error)

GetBlockHashByActionHash mocks base method

func (*MockBlockchain) GetFactory Uses

func (m *MockBlockchain) GetFactory() factory.Factory

GetFactory mocks base method

func (*MockBlockchain) GetHashByHeight Uses

func (m *MockBlockchain) GetHashByHeight(height uint64) (hash.Hash256, error)

GetHashByHeight mocks base method

func (*MockBlockchain) GetHeightByHash Uses

func (m *MockBlockchain) GetHeightByHash(h hash.Hash256) (uint64, error)

GetHeightByHash mocks base method

func (*MockBlockchain) GetReceiptByActionHash Uses

func (m *MockBlockchain) GetReceiptByActionHash(h hash.Hash256) (*action.Receipt, error)

GetReceiptByActionHash mocks base method

func (*MockBlockchain) GetReceiptsByHeight Uses

func (m *MockBlockchain) GetReceiptsByHeight(height uint64) ([]*action.Receipt, error)

GetReceiptsByHeight mocks base method

func (*MockBlockchain) GetTotalActions Uses

func (m *MockBlockchain) GetTotalActions() (uint64, error)

GetTotalActions mocks base method

func (*MockBlockchain) MintNewBlock Uses

func (m *MockBlockchain) MintNewBlock(actionMap map[string][]action.SealedEnvelope, timestamp time.Time) (*block.Block, error)

MintNewBlock mocks base method

func (*MockBlockchain) Nonce Uses

func (m *MockBlockchain) Nonce(addr string) (uint64, error)

Nonce mocks base method

func (*MockBlockchain) ProductivityByEpoch Uses

func (m *MockBlockchain) ProductivityByEpoch(epochNum uint64) (uint64, map[string]uint64, error)

ProductivityByEpoch mocks base method

func (*MockBlockchain) RecoverChainAndState Uses

func (m *MockBlockchain) RecoverChainAndState(targetHeight uint64) error

RecoverChainAndState mocks base method

func (*MockBlockchain) RemoveSubscriber Uses

func (m *MockBlockchain) RemoveSubscriber(arg0 blockchain.BlockCreationSubscriber) error

RemoveSubscriber mocks base method

func (*MockBlockchain) SetValidator Uses

func (m *MockBlockchain) SetValidator(val blockchain.Validator)

SetValidator mocks base method

func (*MockBlockchain) Start Uses

func (m *MockBlockchain) Start(arg0 context.Context) error

Start mocks base method

func (*MockBlockchain) StateByAddr Uses

func (m *MockBlockchain) StateByAddr(address string) (*state.Account, error)

StateByAddr mocks base method

func (*MockBlockchain) Stop Uses

func (m *MockBlockchain) Stop(arg0 context.Context) error

Stop mocks base method

func (*MockBlockchain) TipHash Uses

func (m *MockBlockchain) TipHash() hash.Hash256

TipHash mocks base method

func (*MockBlockchain) TipHeight Uses

func (m *MockBlockchain) TipHeight() uint64

TipHeight mocks base method

func (*MockBlockchain) ValidateBlock Uses

func (m *MockBlockchain) ValidateBlock(blk *block.Block) error

ValidateBlock mocks base method

func (*MockBlockchain) Validator Uses

func (m *MockBlockchain) Validator() blockchain.Validator

Validator mocks base method

type MockBlockchainMockRecorder Uses

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

MockBlockchainMockRecorder is the mock recorder for MockBlockchain

func (*MockBlockchainMockRecorder) AddSubscriber Uses

func (mr *MockBlockchainMockRecorder) AddSubscriber(arg0 interface{}) *gomock.Call

AddSubscriber indicates an expected call of AddSubscriber

func (*MockBlockchainMockRecorder) Balance Uses

func (mr *MockBlockchainMockRecorder) Balance(addr interface{}) *gomock.Call

Balance indicates an expected call of Balance

func (*MockBlockchainMockRecorder) BlockFooterByHash Uses

func (mr *MockBlockchainMockRecorder) BlockFooterByHash(h interface{}) *gomock.Call

BlockFooterByHash indicates an expected call of BlockFooterByHash

func (*MockBlockchainMockRecorder) BlockFooterByHeight Uses

func (mr *MockBlockchainMockRecorder) BlockFooterByHeight(height interface{}) *gomock.Call

BlockFooterByHeight indicates an expected call of BlockFooterByHeight

func (*MockBlockchainMockRecorder) BlockHeaderByHash Uses

func (mr *MockBlockchainMockRecorder) BlockHeaderByHash(h interface{}) *gomock.Call

BlockHeaderByHash indicates an expected call of BlockHeaderByHash

func (*MockBlockchainMockRecorder) BlockHeaderByHeight Uses

func (mr *MockBlockchainMockRecorder) BlockHeaderByHeight(height interface{}) *gomock.Call

BlockHeaderByHeight indicates an expected call of BlockHeaderByHeight

func (*MockBlockchainMockRecorder) CandidatesByHeight Uses

func (mr *MockBlockchainMockRecorder) CandidatesByHeight(height interface{}) *gomock.Call

CandidatesByHeight indicates an expected call of CandidatesByHeight

func (*MockBlockchainMockRecorder) ChainAddress Uses

func (mr *MockBlockchainMockRecorder) ChainAddress() *gomock.Call

ChainAddress indicates an expected call of ChainAddress

func (*MockBlockchainMockRecorder) ChainID Uses

func (mr *MockBlockchainMockRecorder) ChainID() *gomock.Call

ChainID indicates an expected call of ChainID

func (*MockBlockchainMockRecorder) CommitBlock Uses

func (mr *MockBlockchainMockRecorder) CommitBlock(blk interface{}) *gomock.Call

CommitBlock indicates an expected call of CommitBlock

func (*MockBlockchainMockRecorder) CreateState Uses

func (mr *MockBlockchainMockRecorder) CreateState(addr, init interface{}) *gomock.Call

CreateState indicates an expected call of CreateState

func (*MockBlockchainMockRecorder) ExecuteContractRead Uses

func (mr *MockBlockchainMockRecorder) ExecuteContractRead(caller, ex interface{}) *gomock.Call

ExecuteContractRead indicates an expected call of ExecuteContractRead

func (*MockBlockchainMockRecorder) GenesisTimestamp Uses

func (mr *MockBlockchainMockRecorder) GenesisTimestamp() *gomock.Call

GenesisTimestamp indicates an expected call of GenesisTimestamp

func (*MockBlockchainMockRecorder) GetActionByActionHash Uses

func (mr *MockBlockchainMockRecorder) GetActionByActionHash(h interface{}) *gomock.Call

GetActionByActionHash indicates an expected call of GetActionByActionHash

func (*MockBlockchainMockRecorder) GetActionCountByAddress Uses

func (mr *MockBlockchainMockRecorder) GetActionCountByAddress(address interface{}) *gomock.Call

GetActionCountByAddress indicates an expected call of GetActionCountByAddress

func (*MockBlockchainMockRecorder) GetActionHashFromIndex Uses

func (mr *MockBlockchainMockRecorder) GetActionHashFromIndex(index interface{}) *gomock.Call

GetActionHashFromIndex indicates an expected call of GetActionHashFromIndex

func (*MockBlockchainMockRecorder) GetActionsFromAddress Uses

func (mr *MockBlockchainMockRecorder) GetActionsFromAddress(address interface{}) *gomock.Call

GetActionsFromAddress indicates an expected call of GetActionsFromAddress

func (*MockBlockchainMockRecorder) GetActionsToAddress Uses

func (mr *MockBlockchainMockRecorder) GetActionsToAddress(address interface{}) *gomock.Call

GetActionsToAddress indicates an expected call of GetActionsToAddress

func (*MockBlockchainMockRecorder) GetBlockByHash Uses

func (mr *MockBlockchainMockRecorder) GetBlockByHash(h interface{}) *gomock.Call

GetBlockByHash indicates an expected call of GetBlockByHash

func (*MockBlockchainMockRecorder) GetBlockByHeight Uses

func (mr *MockBlockchainMockRecorder) GetBlockByHeight(height interface{}) *gomock.Call

GetBlockByHeight indicates an expected call of GetBlockByHeight

func (*MockBlockchainMockRecorder) GetBlockHashByActionHash Uses

func (mr *MockBlockchainMockRecorder) GetBlockHashByActionHash(h interface{}) *gomock.Call

GetBlockHashByActionHash indicates an expected call of GetBlockHashByActionHash

func (*MockBlockchainMockRecorder) GetFactory Uses

func (mr *MockBlockchainMockRecorder) GetFactory() *gomock.Call

GetFactory indicates an expected call of GetFactory

func (*MockBlockchainMockRecorder) GetHashByHeight Uses

func (mr *MockBlockchainMockRecorder) GetHashByHeight(height interface{}) *gomock.Call

GetHashByHeight indicates an expected call of GetHashByHeight

func (*MockBlockchainMockRecorder) GetHeightByHash Uses

func (mr *MockBlockchainMockRecorder) GetHeightByHash(h interface{}) *gomock.Call

GetHeightByHash indicates an expected call of GetHeightByHash

func (*MockBlockchainMockRecorder) GetReceiptByActionHash Uses

func (mr *MockBlockchainMockRecorder) GetReceiptByActionHash(h interface{}) *gomock.Call

GetReceiptByActionHash indicates an expected call of GetReceiptByActionHash

func (*MockBlockchainMockRecorder) GetReceiptsByHeight Uses

func (mr *MockBlockchainMockRecorder) GetReceiptsByHeight(height interface{}) *gomock.Call

GetReceiptsByHeight indicates an expected call of GetReceiptsByHeight

func (*MockBlockchainMockRecorder) GetTotalActions Uses

func (mr *MockBlockchainMockRecorder) GetTotalActions() *gomock.Call

GetTotalActions indicates an expected call of GetTotalActions

func (*MockBlockchainMockRecorder) MintNewBlock Uses

func (mr *MockBlockchainMockRecorder) MintNewBlock(actionMap, timestamp interface{}) *gomock.Call

MintNewBlock indicates an expected call of MintNewBlock

func (*MockBlockchainMockRecorder) Nonce Uses

func (mr *MockBlockchainMockRecorder) Nonce(addr interface{}) *gomock.Call

Nonce indicates an expected call of Nonce

func (*MockBlockchainMockRecorder) ProductivityByEpoch Uses

func (mr *MockBlockchainMockRecorder) ProductivityByEpoch(epochNum interface{}) *gomock.Call

ProductivityByEpoch indicates an expected call of ProductivityByEpoch

func (*MockBlockchainMockRecorder) RecoverChainAndState Uses

func (mr *MockBlockchainMockRecorder) RecoverChainAndState(targetHeight interface{}) *gomock.Call

RecoverChainAndState indicates an expected call of RecoverChainAndState

func (*MockBlockchainMockRecorder) RemoveSubscriber Uses

func (mr *MockBlockchainMockRecorder) RemoveSubscriber(arg0 interface{}) *gomock.Call

RemoveSubscriber indicates an expected call of RemoveSubscriber

func (*MockBlockchainMockRecorder) SetValidator Uses

func (mr *MockBlockchainMockRecorder) SetValidator(val interface{}) *gomock.Call

SetValidator indicates an expected call of SetValidator

func (*MockBlockchainMockRecorder) Start Uses

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

Start indicates an expected call of Start

func (*MockBlockchainMockRecorder) StateByAddr Uses

func (mr *MockBlockchainMockRecorder) StateByAddr(address interface{}) *gomock.Call

StateByAddr indicates an expected call of StateByAddr

func (*MockBlockchainMockRecorder) Stop Uses

func (mr *MockBlockchainMockRecorder) Stop(arg0 interface{}) *gomock.Call

Stop indicates an expected call of Stop

func (*MockBlockchainMockRecorder) TipHash Uses

func (mr *MockBlockchainMockRecorder) TipHash() *gomock.Call

TipHash indicates an expected call of TipHash

func (*MockBlockchainMockRecorder) TipHeight Uses

func (mr *MockBlockchainMockRecorder) TipHeight() *gomock.Call

TipHeight indicates an expected call of TipHeight

func (*MockBlockchainMockRecorder) ValidateBlock Uses

func (mr *MockBlockchainMockRecorder) ValidateBlock(blk interface{}) *gomock.Call

ValidateBlock indicates an expected call of ValidateBlock

func (*MockBlockchainMockRecorder) Validator Uses

func (mr *MockBlockchainMockRecorder) Validator() *gomock.Call

Validator indicates an expected call of Validator

Package mock_blockchain imports 12 packages (graph). Updated 2019-07-05. Refresh now. Tools for package owners.