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 MockActPoolManager Uses

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

MockActPoolManager is a mock of ActPoolManager interface

func NewMockActPoolManager Uses

func NewMockActPoolManager(ctrl *gomock.Controller) *MockActPoolManager

NewMockActPoolManager creates a new mock instance

func (*MockActPoolManager) EXPECT Uses

func (m *MockActPoolManager) EXPECT() *MockActPoolManagerMockRecorder

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

func (*MockActPoolManager) GetActionByHash Uses

func (m *MockActPoolManager) GetActionByHash(hash hash.Hash256) (action.SealedEnvelope, error)

GetActionByHash mocks base method

type MockActPoolManagerMockRecorder Uses

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

MockActPoolManagerMockRecorder is the mock recorder for MockActPoolManager

func (*MockActPoolManagerMockRecorder) GetActionByHash Uses

func (mr *MockActPoolManagerMockRecorder) GetActionByHash(hash interface{}) *gomock.Call

GetActionByHash indicates an expected call of GetActionByHash

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) BlockDAO Uses

func (m *MockBlockchain) BlockDAO() blockdao.BlockDAO

BlockDAO 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) 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) Context Uses

func (m *MockBlockchain) Context() (context.Context, error)

Context 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) Factory Uses

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

Factory mocks base method

func (*MockBlockchain) Genesis Uses

func (m *MockBlockchain) Genesis() genesis.Genesis

Genesis 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) 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) 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) BlockDAO Uses

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

BlockDAO indicates an expected call of BlockDAO

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) 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) Context Uses

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

Context indicates an expected call of Context

func (*MockBlockchainMockRecorder) Factory Uses

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

Factory indicates an expected call of Factory

func (*MockBlockchainMockRecorder) Genesis Uses

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

Genesis indicates an expected call of Genesis

func (*MockBlockchainMockRecorder) MintNewBlock Uses

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

MintNewBlock indicates an expected call of MintNewBlock

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) 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 11 packages (graph). Updated 2019-12-06. Refresh now. Tools for package owners.