Documentation ¶
Overview ¶
Package mock_blockdao is a generated GoMock package.
Index ¶
- type MockBlockDAO
- func (m *MockBlockDAO) Body(arg0 hash.Hash256) (*block.Body, error)
- func (m *MockBlockDAO) ContainsTransactionLog() bool
- func (m *MockBlockDAO) DeleteBlockToTarget(arg0 uint64) error
- func (m *MockBlockDAO) EXPECT() *MockBlockDAOMockRecorder
- func (m *MockBlockDAO) Footer(arg0 hash.Hash256) (*block.Footer, error)
- func (m *MockBlockDAO) FooterByHeight(arg0 uint64) (*block.Footer, error)
- func (m *MockBlockDAO) GetActionByActionHash(arg0 hash.Hash256, arg1 uint64) (action.SealedEnvelope, error)
- func (m *MockBlockDAO) GetBlock(arg0 hash.Hash256) (*block.Block, error)
- func (m *MockBlockDAO) GetBlockByHeight(arg0 uint64) (*block.Block, error)
- func (m *MockBlockDAO) GetBlockHash(arg0 uint64) (hash.Hash256, error)
- func (m *MockBlockDAO) GetBlockHeight(arg0 hash.Hash256) (uint64, error)
- func (m *MockBlockDAO) GetReceiptByActionHash(arg0 hash.Hash256, arg1 uint64) (*action.Receipt, error)
- func (m *MockBlockDAO) GetReceipts(arg0 uint64) ([]*action.Receipt, error)
- func (m *MockBlockDAO) Header(arg0 hash.Hash256) (*block.Header, error)
- func (m *MockBlockDAO) HeaderByHeight(arg0 uint64) (*block.Header, error)
- func (m *MockBlockDAO) Height() (uint64, error)
- func (m *MockBlockDAO) KVStore() db.KVStore
- func (m *MockBlockDAO) PutBlock(arg0 context.Context, arg1 *block.Block) error
- func (m *MockBlockDAO) Start(ctx context.Context) error
- func (m *MockBlockDAO) Stop(ctx context.Context) error
- func (m *MockBlockDAO) TransactionLogs(arg0 uint64) (*iotextypes.TransactionLogs, error)
- type MockBlockDAOMockRecorder
- func (mr *MockBlockDAOMockRecorder) Body(arg0 interface{}) *gomock.Call
- func (mr *MockBlockDAOMockRecorder) ContainsTransactionLog() *gomock.Call
- func (mr *MockBlockDAOMockRecorder) DeleteBlockToTarget(arg0 interface{}) *gomock.Call
- func (mr *MockBlockDAOMockRecorder) Footer(arg0 interface{}) *gomock.Call
- func (mr *MockBlockDAOMockRecorder) FooterByHeight(arg0 interface{}) *gomock.Call
- func (mr *MockBlockDAOMockRecorder) GetActionByActionHash(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBlockDAOMockRecorder) GetBlock(arg0 interface{}) *gomock.Call
- func (mr *MockBlockDAOMockRecorder) GetBlockByHeight(arg0 interface{}) *gomock.Call
- func (mr *MockBlockDAOMockRecorder) GetBlockHash(arg0 interface{}) *gomock.Call
- func (mr *MockBlockDAOMockRecorder) GetBlockHeight(arg0 interface{}) *gomock.Call
- func (mr *MockBlockDAOMockRecorder) GetReceiptByActionHash(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBlockDAOMockRecorder) GetReceipts(arg0 interface{}) *gomock.Call
- func (mr *MockBlockDAOMockRecorder) Header(arg0 interface{}) *gomock.Call
- func (mr *MockBlockDAOMockRecorder) HeaderByHeight(arg0 interface{}) *gomock.Call
- func (mr *MockBlockDAOMockRecorder) Height() *gomock.Call
- func (mr *MockBlockDAOMockRecorder) KVStore() *gomock.Call
- func (mr *MockBlockDAOMockRecorder) PutBlock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBlockDAOMockRecorder) Start(ctx interface{}) *gomock.Call
- func (mr *MockBlockDAOMockRecorder) Stop(ctx interface{}) *gomock.Call
- func (mr *MockBlockDAOMockRecorder) TransactionLogs(arg0 interface{}) *gomock.Call
- type MockBlockIndexer
- func (m *MockBlockIndexer) DeleteTipBlock(blk *block.Block) error
- func (m *MockBlockIndexer) EXPECT() *MockBlockIndexerMockRecorder
- func (m *MockBlockIndexer) Height() (uint64, error)
- func (m *MockBlockIndexer) PutBlock(arg0 context.Context, arg1 *block.Block) error
- func (m *MockBlockIndexer) Start(ctx context.Context) error
- func (m *MockBlockIndexer) Stop(ctx context.Context) error
- type MockBlockIndexerMockRecorder
- func (mr *MockBlockIndexerMockRecorder) DeleteTipBlock(blk interface{}) *gomock.Call
- func (mr *MockBlockIndexerMockRecorder) Height() *gomock.Call
- func (mr *MockBlockIndexerMockRecorder) PutBlock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBlockIndexerMockRecorder) Start(ctx interface{}) *gomock.Call
- func (mr *MockBlockIndexerMockRecorder) Stop(ctx interface{}) *gomock.Call
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 ¶ added in v1.1.0
func (m *MockBlockDAO) ContainsTransactionLog() bool
ContainsTransactionLog mocks base method
func (*MockBlockDAO) DeleteBlockToTarget ¶
func (m *MockBlockDAO) DeleteBlockToTarget(arg0 uint64) error
DeleteBlockToTarget mocks base method
func (*MockBlockDAO) EXPECT ¶
func (m *MockBlockDAO) EXPECT() *MockBlockDAOMockRecorder
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) GetActionByActionHash ¶
func (m *MockBlockDAO) GetActionByActionHash(arg0 hash.Hash256, arg1 uint64) (action.SealedEnvelope, error)
GetActionByActionHash 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) GetReceiptByActionHash ¶
func (m *MockBlockDAO) GetReceiptByActionHash(arg0 hash.Hash256, arg1 uint64) (*action.Receipt, error)
GetReceiptByActionHash mocks base method
func (*MockBlockDAO) GetReceipts ¶
func (m *MockBlockDAO) GetReceipts(arg0 uint64) ([]*action.Receipt, error)
GetReceipts mocks base method
func (*MockBlockDAO) HeaderByHeight ¶
func (m *MockBlockDAO) HeaderByHeight(arg0 uint64) (*block.Header, error)
HeaderByHeight mocks base method
func (*MockBlockDAO) Height ¶ added in v1.0.0
func (m *MockBlockDAO) Height() (uint64, error)
Height mocks base method
func (*MockBlockDAO) KVStore ¶
func (m *MockBlockDAO) KVStore() db.KVStore
KVStore mocks base method
func (*MockBlockDAO) Start ¶
func (m *MockBlockDAO) Start(ctx context.Context) error
Start mocks base method
func (*MockBlockDAO) Stop ¶
func (m *MockBlockDAO) Stop(ctx context.Context) error
Stop mocks base method
func (*MockBlockDAO) TransactionLogs ¶ added in v1.1.0
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) Body ¶
func (mr *MockBlockDAOMockRecorder) Body(arg0 interface{}) *gomock.Call
Body indicates an expected call of Body
func (*MockBlockDAOMockRecorder) ContainsTransactionLog ¶ added in v1.1.0
func (mr *MockBlockDAOMockRecorder) ContainsTransactionLog() *gomock.Call
ContainsTransactionLog indicates an expected call of ContainsTransactionLog
func (*MockBlockDAOMockRecorder) DeleteBlockToTarget ¶
func (mr *MockBlockDAOMockRecorder) DeleteBlockToTarget(arg0 interface{}) *gomock.Call
DeleteBlockToTarget indicates an expected call of DeleteBlockToTarget
func (*MockBlockDAOMockRecorder) Footer ¶
func (mr *MockBlockDAOMockRecorder) Footer(arg0 interface{}) *gomock.Call
Footer indicates an expected call of Footer
func (*MockBlockDAOMockRecorder) FooterByHeight ¶
func (mr *MockBlockDAOMockRecorder) FooterByHeight(arg0 interface{}) *gomock.Call
FooterByHeight indicates an expected call of FooterByHeight
func (*MockBlockDAOMockRecorder) GetActionByActionHash ¶
func (mr *MockBlockDAOMockRecorder) GetActionByActionHash(arg0, arg1 interface{}) *gomock.Call
GetActionByActionHash indicates an expected call of GetActionByActionHash
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) GetReceiptByActionHash ¶
func (mr *MockBlockDAOMockRecorder) GetReceiptByActionHash(arg0, arg1 interface{}) *gomock.Call
GetReceiptByActionHash indicates an expected call of GetReceiptByActionHash
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 ¶ added in v1.0.0
func (mr *MockBlockDAOMockRecorder) Height() *gomock.Call
Height indicates an expected call of Height
func (*MockBlockDAOMockRecorder) KVStore ¶
func (mr *MockBlockDAOMockRecorder) KVStore() *gomock.Call
KVStore indicates an expected call of KVStore
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(ctx interface{}) *gomock.Call
Start indicates an expected call of Start
func (*MockBlockDAOMockRecorder) Stop ¶
func (mr *MockBlockDAOMockRecorder) Stop(ctx interface{}) *gomock.Call
Stop indicates an expected call of Stop
func (*MockBlockDAOMockRecorder) TransactionLogs ¶ added in v1.1.0
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(blk *block.Block) error
DeleteTipBlock mocks base method
func (*MockBlockIndexer) EXPECT ¶
func (m *MockBlockIndexer) EXPECT() *MockBlockIndexerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBlockIndexer) Height ¶ added in v1.0.0
func (m *MockBlockIndexer) Height() (uint64, error)
Height 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(blk interface{}) *gomock.Call
DeleteTipBlock indicates an expected call of DeleteTipBlock
func (*MockBlockIndexerMockRecorder) Height ¶ added in v1.0.0
func (mr *MockBlockIndexerMockRecorder) Height() *gomock.Call
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(ctx interface{}) *gomock.Call
Start indicates an expected call of Start
func (*MockBlockIndexerMockRecorder) Stop ¶
func (mr *MockBlockIndexerMockRecorder) Stop(ctx interface{}) *gomock.Call
Stop indicates an expected call of Stop