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

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

MockBlockBuilderFactory is a mock of BlockBuilderFactory interface

func NewMockBlockBuilderFactory Uses

func NewMockBlockBuilderFactory(ctrl *gomock.Controller) *MockBlockBuilderFactory

NewMockBlockBuilderFactory creates a new mock instance

func (*MockBlockBuilderFactory) EXPECT Uses

func (m *MockBlockBuilderFactory) EXPECT() *MockBlockBuilderFactoryMockRecorder

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

func (*MockBlockBuilderFactory) NewBlockBuilder Uses

func (m *MockBlockBuilderFactory) NewBlockBuilder(arg0 context.Context, arg1 func(action.Envelope) (action.SealedEnvelope, error)) (*block.Builder, error)

NewBlockBuilder mocks base method

type MockBlockBuilderFactoryMockRecorder Uses

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

MockBlockBuilderFactoryMockRecorder is the mock recorder for MockBlockBuilderFactory

func (*MockBlockBuilderFactoryMockRecorder) NewBlockBuilder Uses

func (mr *MockBlockBuilderFactoryMockRecorder) NewBlockBuilder(arg0, arg1 interface{}) *gomock.Call

NewBlockBuilder indicates an expected call of NewBlockBuilder

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

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

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

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

Genesis mocks base method

func (*MockBlockchain) MintNewBlock Uses

func (m *MockBlockchain) MintNewBlock(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) 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

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

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

BlockFooterByHeight indicates an expected call of BlockFooterByHeight

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

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

Genesis indicates an expected call of Genesis

func (*MockBlockchainMockRecorder) MintNewBlock Uses

func (mr *MockBlockchainMockRecorder) MintNewBlock(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) 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

Package mock_blockchain imports 9 packages (graph). Updated 2020-06-13. Refresh now. Tools for package owners.