mock_blockdao

package
v2.1.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mock_blockdao is a generated GoMock package.

Package mock_blockdao is a generated GoMock package.

Package mock_blockdao is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBlockDAO

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

MockBlockDAO is a mock of BlockDAO interface.

func NewMockBlockDAO

func NewMockBlockDAO(ctrl *gomock.Controller) *MockBlockDAO

NewMockBlockDAO creates a new mock instance.

func (*MockBlockDAO) ContainsTransactionLog

func (m *MockBlockDAO) ContainsTransactionLog() bool

ContainsTransactionLog mocks base method.

func (*MockBlockDAO) EXPECT

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

func (*MockBlockDAO) FooterByHeight

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

FooterByHeight mocks base method.

func (*MockBlockDAO) GetBlob

func (m *MockBlockDAO) GetBlob(arg0 hash.Hash256) (*types.BlobTxSidecar, string, error)

GetBlob mocks base method.

func (*MockBlockDAO) GetBlobsByHeight

func (m *MockBlockDAO) GetBlobsByHeight(arg0 uint64) ([]*types.BlobTxSidecar, []string, error)

GetBlobsByHeight mocks base method.

func (*MockBlockDAO) GetBlock

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

GetBlock mocks base method.

func (*MockBlockDAO) GetBlockByHeight

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

GetBlockByHeight mocks base method.

func (*MockBlockDAO) GetBlockHash

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

GetBlockHash mocks base method.

func (*MockBlockDAO) GetBlockHeight

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

GetBlockHeight mocks base method.

func (*MockBlockDAO) GetReceipts

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

GetReceipts mocks base method.

func (*MockBlockDAO) Header

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

Header mocks base method.

func (*MockBlockDAO) HeaderByHeight

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

HeaderByHeight mocks base method.

func (*MockBlockDAO) Height

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

Height mocks base method.

func (*MockBlockDAO) PutBlock

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

PutBlock mocks base method.

func (*MockBlockDAO) Start

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

Start mocks base method.

func (*MockBlockDAO) Stop

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

Stop mocks base method.

func (*MockBlockDAO) TransactionLogs

func (m *MockBlockDAO) TransactionLogs(arg0 uint64) (*iotextypes.TransactionLogs, error)

TransactionLogs mocks base method.

type MockBlockDAOMockRecorder

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

MockBlockDAOMockRecorder is the mock recorder for MockBlockDAO.

func (*MockBlockDAOMockRecorder) ContainsTransactionLog

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

ContainsTransactionLog indicates an expected call of ContainsTransactionLog.

func (*MockBlockDAOMockRecorder) FooterByHeight

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

FooterByHeight indicates an expected call of FooterByHeight.

func (*MockBlockDAOMockRecorder) GetBlob

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

GetBlob indicates an expected call of GetBlob.

func (*MockBlockDAOMockRecorder) GetBlobsByHeight

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

GetBlobsByHeight indicates an expected call of GetBlobsByHeight.

func (*MockBlockDAOMockRecorder) GetBlock

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

GetBlock indicates an expected call of GetBlock.

func (*MockBlockDAOMockRecorder) GetBlockByHeight

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

GetBlockByHeight indicates an expected call of GetBlockByHeight.

func (*MockBlockDAOMockRecorder) GetBlockHash

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

GetBlockHash indicates an expected call of GetBlockHash.

func (*MockBlockDAOMockRecorder) GetBlockHeight

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

GetBlockHeight indicates an expected call of GetBlockHeight.

func (*MockBlockDAOMockRecorder) GetReceipts

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

GetReceipts indicates an expected call of GetReceipts.

func (*MockBlockDAOMockRecorder) Header

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

Header indicates an expected call of Header.

func (*MockBlockDAOMockRecorder) HeaderByHeight

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

HeaderByHeight indicates an expected call of HeaderByHeight.

func (*MockBlockDAOMockRecorder) Height

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

Height indicates an expected call of Height.

func (*MockBlockDAOMockRecorder) PutBlock

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

PutBlock indicates an expected call of PutBlock.

func (*MockBlockDAOMockRecorder) Start

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

Start indicates an expected call of Start.

func (*MockBlockDAOMockRecorder) Stop

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

Stop indicates an expected call of Stop.

func (*MockBlockDAOMockRecorder) TransactionLogs

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

TransactionLogs indicates an expected call of TransactionLogs.

type MockBlockIndexer

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

MockBlockIndexer is a mock of BlockIndexer interface.

func NewMockBlockIndexer

func NewMockBlockIndexer(ctrl *gomock.Controller) *MockBlockIndexer

NewMockBlockIndexer creates a new mock instance.

func (*MockBlockIndexer) DeleteTipBlock

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

DeleteTipBlock mocks base method.

func (*MockBlockIndexer) EXPECT

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

func (*MockBlockIndexer) Height

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

Height mocks base method.

func (*MockBlockIndexer) PutBlock

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

PutBlock mocks base method.

func (*MockBlockIndexer) Start

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

Start mocks base method.

func (*MockBlockIndexer) Stop

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

Stop mocks base method.

type MockBlockIndexerMockRecorder

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

MockBlockIndexerMockRecorder is the mock recorder for MockBlockIndexer.

func (*MockBlockIndexerMockRecorder) DeleteTipBlock

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

DeleteTipBlock indicates an expected call of DeleteTipBlock.

func (*MockBlockIndexerMockRecorder) Height

Height indicates an expected call of Height.

func (*MockBlockIndexerMockRecorder) PutBlock

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

PutBlock indicates an expected call of PutBlock.

func (*MockBlockIndexerMockRecorder) Start

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

Start indicates an expected call of Start.

func (*MockBlockIndexerMockRecorder) Stop

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

Stop indicates an expected call of Stop.

type MockBlockIndexerWithStart

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

MockBlockIndexerWithStart is a mock of BlockIndexerWithStart interface.

func NewMockBlockIndexerWithStart

func NewMockBlockIndexerWithStart(ctrl *gomock.Controller) *MockBlockIndexerWithStart

NewMockBlockIndexerWithStart creates a new mock instance.

func (*MockBlockIndexerWithStart) DeleteTipBlock

func (m *MockBlockIndexerWithStart) DeleteTipBlock(arg0 context.Context, arg1 *block.Block) error

DeleteTipBlock mocks base method.

func (*MockBlockIndexerWithStart) EXPECT

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

func (*MockBlockIndexerWithStart) Height

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

Height mocks base method.

func (*MockBlockIndexerWithStart) PutBlock

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

PutBlock mocks base method.

func (*MockBlockIndexerWithStart) Start

Start mocks base method.

func (*MockBlockIndexerWithStart) StartHeight

func (m *MockBlockIndexerWithStart) StartHeight() uint64

StartHeight mocks base method.

func (*MockBlockIndexerWithStart) Stop

Stop mocks base method.

type MockBlockIndexerWithStartMockRecorder

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

MockBlockIndexerWithStartMockRecorder is the mock recorder for MockBlockIndexerWithStart.

func (*MockBlockIndexerWithStartMockRecorder) DeleteTipBlock

func (mr *MockBlockIndexerWithStartMockRecorder) DeleteTipBlock(arg0, arg1 interface{}) *gomock.Call

DeleteTipBlock indicates an expected call of DeleteTipBlock.

func (*MockBlockIndexerWithStartMockRecorder) Height

Height indicates an expected call of Height.

func (*MockBlockIndexerWithStartMockRecorder) PutBlock

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

PutBlock indicates an expected call of PutBlock.

func (*MockBlockIndexerWithStartMockRecorder) Start

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

Start indicates an expected call of Start.

func (*MockBlockIndexerWithStartMockRecorder) StartHeight

StartHeight indicates an expected call of StartHeight.

func (*MockBlockIndexerWithStartMockRecorder) Stop

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

Stop indicates an expected call of Stop.

type MockBlockStore

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

MockBlockStore is a mock of BlockStore interface.

func NewMockBlockStore

func NewMockBlockStore(ctrl *gomock.Controller) *MockBlockStore

NewMockBlockStore creates a new mock instance.

func (*MockBlockStore) ContainsTransactionLog

func (m *MockBlockStore) ContainsTransactionLog() bool

ContainsTransactionLog mocks base method.

func (*MockBlockStore) EXPECT

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

func (*MockBlockStore) FooterByHeight

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

FooterByHeight mocks base method.

func (*MockBlockStore) GetBlock

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

GetBlock mocks base method.

func (*MockBlockStore) GetBlockByHeight

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

GetBlockByHeight mocks base method.

func (*MockBlockStore) GetBlockHash

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

GetBlockHash mocks base method.

func (*MockBlockStore) GetBlockHeight

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

GetBlockHeight mocks base method.

func (*MockBlockStore) GetReceipts

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

GetReceipts mocks base method.

func (*MockBlockStore) Header

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

Header mocks base method.

func (*MockBlockStore) HeaderByHeight

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

HeaderByHeight mocks base method.

func (*MockBlockStore) Height

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

Height mocks base method.

func (*MockBlockStore) PutBlock

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

PutBlock mocks base method.

func (*MockBlockStore) Start

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

Start mocks base method.

func (*MockBlockStore) Stop

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

Stop mocks base method.

func (*MockBlockStore) TransactionLogs

func (m *MockBlockStore) TransactionLogs(arg0 uint64) (*iotextypes.TransactionLogs, error)

TransactionLogs mocks base method.

type MockBlockStoreMockRecorder

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

MockBlockStoreMockRecorder is the mock recorder for MockBlockStore.

func (*MockBlockStoreMockRecorder) ContainsTransactionLog

func (mr *MockBlockStoreMockRecorder) ContainsTransactionLog() *gomock.Call

ContainsTransactionLog indicates an expected call of ContainsTransactionLog.

func (*MockBlockStoreMockRecorder) FooterByHeight

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

FooterByHeight indicates an expected call of FooterByHeight.

func (*MockBlockStoreMockRecorder) GetBlock

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

GetBlock indicates an expected call of GetBlock.

func (*MockBlockStoreMockRecorder) GetBlockByHeight

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

GetBlockByHeight indicates an expected call of GetBlockByHeight.

func (*MockBlockStoreMockRecorder) GetBlockHash

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

GetBlockHash indicates an expected call of GetBlockHash.

func (*MockBlockStoreMockRecorder) GetBlockHeight

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

GetBlockHeight indicates an expected call of GetBlockHeight.

func (*MockBlockStoreMockRecorder) GetReceipts

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

GetReceipts indicates an expected call of GetReceipts.

func (*MockBlockStoreMockRecorder) Header

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

Header indicates an expected call of Header.

func (*MockBlockStoreMockRecorder) HeaderByHeight

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

HeaderByHeight indicates an expected call of HeaderByHeight.

func (*MockBlockStoreMockRecorder) Height

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

Height indicates an expected call of Height.

func (*MockBlockStoreMockRecorder) PutBlock

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

PutBlock indicates an expected call of PutBlock.

func (*MockBlockStoreMockRecorder) Start

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

Start indicates an expected call of Start.

func (*MockBlockStoreMockRecorder) Stop

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

Stop indicates an expected call of Stop.

func (*MockBlockStoreMockRecorder) TransactionLogs

func (mr *MockBlockStoreMockRecorder) TransactionLogs(arg0 interface{}) *gomock.Call

TransactionLogs indicates an expected call of TransactionLogs.

Jump to

Keyboard shortcuts

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