Documentation ¶
Overview ¶
Package mock_blocksync is a generated GoMock package.
Index ¶
- type MockBlockDAO
- type MockBlockDAOMockRecorder
- type MockBlockSync
- func (m *MockBlockSync) EXPECT() *MockBlockSyncMockRecorder
- func (m *MockBlockSync) ProcessBlock(ctx context.Context, blk *block.Block) error
- func (m *MockBlockSync) ProcessBlockSync(ctx context.Context, blk *block.Block) error
- func (m *MockBlockSync) ProcessSyncRequest(ctx context.Context, peer peerstore.PeerInfo, sync *iotexrpc.BlockSync) error
- func (m *MockBlockSync) Start(arg0 context.Context) error
- func (m *MockBlockSync) Stop(arg0 context.Context) error
- func (m *MockBlockSync) TargetHeight() uint64
- type MockBlockSyncMockRecorder
- func (mr *MockBlockSyncMockRecorder) ProcessBlock(ctx, blk interface{}) *gomock.Call
- func (mr *MockBlockSyncMockRecorder) ProcessBlockSync(ctx, blk interface{}) *gomock.Call
- func (mr *MockBlockSyncMockRecorder) ProcessSyncRequest(ctx, peer, sync interface{}) *gomock.Call
- func (mr *MockBlockSyncMockRecorder) Start(arg0 interface{}) *gomock.Call
- func (mr *MockBlockSyncMockRecorder) Stop(arg0 interface{}) *gomock.Call
- func (mr *MockBlockSyncMockRecorder) TargetHeight() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBlockDAO ¶ added in v0.11.0
type MockBlockDAO struct {
// contains filtered or unexported fields
}
MockBlockDAO is a mock of BlockDAO interface
func NewMockBlockDAO ¶ added in v0.11.0
func NewMockBlockDAO(ctrl *gomock.Controller) *MockBlockDAO
NewMockBlockDAO creates a new mock instance
func (*MockBlockDAO) EXPECT ¶ added in v0.11.0
func (m *MockBlockDAO) EXPECT() *MockBlockDAOMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBlockDAO) GetBlockByHeight ¶ added in v0.11.0
func (m *MockBlockDAO) GetBlockByHeight(arg0 uint64) (*block.Block, error)
GetBlockByHeight mocks base method
type MockBlockDAOMockRecorder ¶ added in v0.11.0
type MockBlockDAOMockRecorder struct {
// contains filtered or unexported fields
}
MockBlockDAOMockRecorder is the mock recorder for MockBlockDAO
func (*MockBlockDAOMockRecorder) GetBlockByHeight ¶ added in v0.11.0
func (mr *MockBlockDAOMockRecorder) GetBlockByHeight(arg0 interface{}) *gomock.Call
GetBlockByHeight indicates an expected call of GetBlockByHeight
type MockBlockSync ¶
type MockBlockSync struct {
// contains filtered or unexported fields
}
MockBlockSync is a mock of BlockSync interface
func NewMockBlockSync ¶
func NewMockBlockSync(ctrl *gomock.Controller) *MockBlockSync
NewMockBlockSync creates a new mock instance
func (*MockBlockSync) EXPECT ¶
func (m *MockBlockSync) EXPECT() *MockBlockSyncMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBlockSync) ProcessBlock ¶
ProcessBlock mocks base method
func (*MockBlockSync) ProcessBlockSync ¶
ProcessBlockSync mocks base method
func (*MockBlockSync) ProcessSyncRequest ¶
func (m *MockBlockSync) ProcessSyncRequest(ctx context.Context, peer peerstore.PeerInfo, sync *iotexrpc.BlockSync) error
ProcessSyncRequest mocks base method
func (*MockBlockSync) Start ¶
func (m *MockBlockSync) Start(arg0 context.Context) error
Start mocks base method
func (*MockBlockSync) Stop ¶
func (m *MockBlockSync) Stop(arg0 context.Context) error
Stop mocks base method
func (*MockBlockSync) TargetHeight ¶ added in v0.4.1
func (m *MockBlockSync) TargetHeight() uint64
TargetHeight mocks base method
type MockBlockSyncMockRecorder ¶
type MockBlockSyncMockRecorder struct {
// contains filtered or unexported fields
}
MockBlockSyncMockRecorder is the mock recorder for MockBlockSync
func (*MockBlockSyncMockRecorder) ProcessBlock ¶
func (mr *MockBlockSyncMockRecorder) ProcessBlock(ctx, blk interface{}) *gomock.Call
ProcessBlock indicates an expected call of ProcessBlock
func (*MockBlockSyncMockRecorder) ProcessBlockSync ¶
func (mr *MockBlockSyncMockRecorder) ProcessBlockSync(ctx, blk interface{}) *gomock.Call
ProcessBlockSync indicates an expected call of ProcessBlockSync
func (*MockBlockSyncMockRecorder) ProcessSyncRequest ¶
func (mr *MockBlockSyncMockRecorder) ProcessSyncRequest(ctx, peer, sync interface{}) *gomock.Call
ProcessSyncRequest indicates an expected call of ProcessSyncRequest
func (*MockBlockSyncMockRecorder) Start ¶
func (mr *MockBlockSyncMockRecorder) Start(arg0 interface{}) *gomock.Call
Start indicates an expected call of Start
func (*MockBlockSyncMockRecorder) Stop ¶
func (mr *MockBlockSyncMockRecorder) Stop(arg0 interface{}) *gomock.Call
Stop indicates an expected call of Stop
func (*MockBlockSyncMockRecorder) TargetHeight ¶ added in v0.4.1
func (mr *MockBlockSyncMockRecorder) TargetHeight() *gomock.Call
TargetHeight indicates an expected call of TargetHeight