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

package mock_blockdao

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

Package mock_blockdao is a generated GoMock package.

Index

Package Files

mock_blockdao.go

type MockBlockDAO Uses

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

MockBlockDAO is a mock of BlockDAO interface

func NewMockBlockDAO Uses

func NewMockBlockDAO(ctrl *gomock.Controller) *MockBlockDAO

NewMockBlockDAO creates a new mock instance

func (*MockBlockDAO) Body Uses

func (m *MockBlockDAO) Body(arg0 hash.Hash256) (*block.Body, error)

Body mocks base method

func (*MockBlockDAO) DeleteBlockToTarget Uses

func (m *MockBlockDAO) DeleteBlockToTarget(arg0 uint64) error

DeleteBlockToTarget mocks base method

func (*MockBlockDAO) EXPECT Uses

func (m *MockBlockDAO) EXPECT() *MockBlockDAOMockRecorder

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

func (*MockBlockDAO) Footer Uses

func (m *MockBlockDAO) Footer(arg0 hash.Hash256) (*block.Footer, error)

Footer mocks base method

func (*MockBlockDAO) FooterByHeight Uses

func (m *MockBlockDAO) FooterByHeight(arg0 uint64) (*block.Footer, error)

FooterByHeight mocks base method

func (*MockBlockDAO) GetActionByActionHash Uses

func (m *MockBlockDAO) GetActionByActionHash(arg0 hash.Hash256, arg1 uint64) (action.SealedEnvelope, error)

GetActionByActionHash mocks base method

func (*MockBlockDAO) GetBlock Uses

func (m *MockBlockDAO) GetBlock(arg0 hash.Hash256) (*block.Block, error)

GetBlock mocks base method

func (*MockBlockDAO) GetBlockByHeight Uses

func (m *MockBlockDAO) GetBlockByHeight(arg0 uint64) (*block.Block, error)

GetBlockByHeight mocks base method

func (*MockBlockDAO) GetBlockHash Uses

func (m *MockBlockDAO) GetBlockHash(arg0 uint64) (hash.Hash256, error)

GetBlockHash mocks base method

func (*MockBlockDAO) GetBlockHeight Uses

func (m *MockBlockDAO) GetBlockHeight(arg0 hash.Hash256) (uint64, error)

GetBlockHeight mocks base method

func (*MockBlockDAO) GetReceiptByActionHash Uses

func (m *MockBlockDAO) GetReceiptByActionHash(arg0 hash.Hash256, arg1 uint64) (*action.Receipt, error)

GetReceiptByActionHash mocks base method

func (*MockBlockDAO) GetReceipts Uses

func (m *MockBlockDAO) GetReceipts(arg0 uint64) ([]*action.Receipt, error)

GetReceipts mocks base method

func (*MockBlockDAO) Header Uses

func (m *MockBlockDAO) Header(arg0 hash.Hash256) (*block.Header, error)

Header mocks base method

func (*MockBlockDAO) HeaderByHeight Uses

func (m *MockBlockDAO) HeaderByHeight(arg0 uint64) (*block.Header, error)

HeaderByHeight mocks base method

func (*MockBlockDAO) Height Uses

func (m *MockBlockDAO) Height() (uint64, error)

Height mocks base method

func (*MockBlockDAO) KVStore Uses

func (m *MockBlockDAO) KVStore() db.KVStore

KVStore mocks base method

func (*MockBlockDAO) PutBlock Uses

func (m *MockBlockDAO) PutBlock(arg0 context.Context, arg1 *block.Block) error

PutBlock mocks base method

func (*MockBlockDAO) Start Uses

func (m *MockBlockDAO) Start(ctx context.Context) error

Start mocks base method

func (*MockBlockDAO) Stop Uses

func (m *MockBlockDAO) Stop(ctx context.Context) error

Stop mocks base method

type MockBlockDAOMockRecorder Uses

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

MockBlockDAOMockRecorder is the mock recorder for MockBlockDAO

func (*MockBlockDAOMockRecorder) Body Uses

func (mr *MockBlockDAOMockRecorder) Body(arg0 interface{}) *gomock.Call

Body indicates an expected call of Body

func (*MockBlockDAOMockRecorder) DeleteBlockToTarget Uses

func (mr *MockBlockDAOMockRecorder) DeleteBlockToTarget(arg0 interface{}) *gomock.Call

DeleteBlockToTarget indicates an expected call of DeleteBlockToTarget

func (*MockBlockDAOMockRecorder) Footer Uses

func (mr *MockBlockDAOMockRecorder) Footer(arg0 interface{}) *gomock.Call

Footer indicates an expected call of Footer

func (*MockBlockDAOMockRecorder) FooterByHeight Uses

func (mr *MockBlockDAOMockRecorder) FooterByHeight(arg0 interface{}) *gomock.Call

FooterByHeight indicates an expected call of FooterByHeight

func (*MockBlockDAOMockRecorder) GetActionByActionHash Uses

func (mr *MockBlockDAOMockRecorder) GetActionByActionHash(arg0, arg1 interface{}) *gomock.Call

GetActionByActionHash indicates an expected call of GetActionByActionHash

func (*MockBlockDAOMockRecorder) GetBlock Uses

func (mr *MockBlockDAOMockRecorder) GetBlock(arg0 interface{}) *gomock.Call

GetBlock indicates an expected call of GetBlock

func (*MockBlockDAOMockRecorder) GetBlockByHeight Uses

func (mr *MockBlockDAOMockRecorder) GetBlockByHeight(arg0 interface{}) *gomock.Call

GetBlockByHeight indicates an expected call of GetBlockByHeight

func (*MockBlockDAOMockRecorder) GetBlockHash Uses

func (mr *MockBlockDAOMockRecorder) GetBlockHash(arg0 interface{}) *gomock.Call

GetBlockHash indicates an expected call of GetBlockHash

func (*MockBlockDAOMockRecorder) GetBlockHeight Uses

func (mr *MockBlockDAOMockRecorder) GetBlockHeight(arg0 interface{}) *gomock.Call

GetBlockHeight indicates an expected call of GetBlockHeight

func (*MockBlockDAOMockRecorder) GetReceiptByActionHash Uses

func (mr *MockBlockDAOMockRecorder) GetReceiptByActionHash(arg0, arg1 interface{}) *gomock.Call

GetReceiptByActionHash indicates an expected call of GetReceiptByActionHash

func (*MockBlockDAOMockRecorder) GetReceipts Uses

func (mr *MockBlockDAOMockRecorder) GetReceipts(arg0 interface{}) *gomock.Call

GetReceipts indicates an expected call of GetReceipts

func (*MockBlockDAOMockRecorder) Header Uses

func (mr *MockBlockDAOMockRecorder) Header(arg0 interface{}) *gomock.Call

Header indicates an expected call of Header

func (*MockBlockDAOMockRecorder) HeaderByHeight Uses

func (mr *MockBlockDAOMockRecorder) HeaderByHeight(arg0 interface{}) *gomock.Call

HeaderByHeight indicates an expected call of HeaderByHeight

func (*MockBlockDAOMockRecorder) Height Uses

func (mr *MockBlockDAOMockRecorder) Height() *gomock.Call

Height indicates an expected call of Height

func (*MockBlockDAOMockRecorder) KVStore Uses

func (mr *MockBlockDAOMockRecorder) KVStore() *gomock.Call

KVStore indicates an expected call of KVStore

func (*MockBlockDAOMockRecorder) PutBlock Uses

func (mr *MockBlockDAOMockRecorder) PutBlock(arg0, arg1 interface{}) *gomock.Call

PutBlock indicates an expected call of PutBlock

func (*MockBlockDAOMockRecorder) Start Uses

func (mr *MockBlockDAOMockRecorder) Start(ctx interface{}) *gomock.Call

Start indicates an expected call of Start

func (*MockBlockDAOMockRecorder) Stop Uses

func (mr *MockBlockDAOMockRecorder) Stop(ctx interface{}) *gomock.Call

Stop indicates an expected call of Stop

type MockBlockIndexer Uses

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

MockBlockIndexer is a mock of BlockIndexer interface

func NewMockBlockIndexer Uses

func NewMockBlockIndexer(ctrl *gomock.Controller) *MockBlockIndexer

NewMockBlockIndexer creates a new mock instance

func (*MockBlockIndexer) DeleteTipBlock Uses

func (m *MockBlockIndexer) DeleteTipBlock(blk *block.Block) error

DeleteTipBlock mocks base method

func (*MockBlockIndexer) EXPECT Uses

func (m *MockBlockIndexer) EXPECT() *MockBlockIndexerMockRecorder

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

func (*MockBlockIndexer) Height Uses

func (m *MockBlockIndexer) Height() (uint64, error)

Height mocks base method

func (*MockBlockIndexer) PutBlock Uses

func (m *MockBlockIndexer) PutBlock(arg0 context.Context, arg1 *block.Block) error

PutBlock mocks base method

func (*MockBlockIndexer) Start Uses

func (m *MockBlockIndexer) Start(ctx context.Context) error

Start mocks base method

func (*MockBlockIndexer) Stop Uses

func (m *MockBlockIndexer) Stop(ctx context.Context) error

Stop mocks base method

type MockBlockIndexerMockRecorder Uses

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

MockBlockIndexerMockRecorder is the mock recorder for MockBlockIndexer

func (*MockBlockIndexerMockRecorder) DeleteTipBlock Uses

func (mr *MockBlockIndexerMockRecorder) DeleteTipBlock(blk interface{}) *gomock.Call

DeleteTipBlock indicates an expected call of DeleteTipBlock

func (*MockBlockIndexerMockRecorder) Height Uses

func (mr *MockBlockIndexerMockRecorder) Height() *gomock.Call

Height indicates an expected call of Height

func (*MockBlockIndexerMockRecorder) PutBlock Uses

func (mr *MockBlockIndexerMockRecorder) PutBlock(arg0, arg1 interface{}) *gomock.Call

PutBlock indicates an expected call of PutBlock

func (*MockBlockIndexerMockRecorder) Start Uses

func (mr *MockBlockIndexerMockRecorder) Start(ctx interface{}) *gomock.Call

Start indicates an expected call of Start

func (*MockBlockIndexerMockRecorder) Stop Uses

func (mr *MockBlockIndexerMockRecorder) Stop(ctx interface{}) *gomock.Call

Stop indicates an expected call of Stop

Package mock_blockdao imports 7 packages (graph). Updated 2020-04-07. Refresh now. Tools for package owners.