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

package mock_blocksync

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

Package mock_blocksync is a generated GoMock package.

Index

Package Files

mock_blocksync.go

type MockBlockSync Uses

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

MockBlockSync is a mock of BlockSync interface

func NewMockBlockSync Uses

func NewMockBlockSync(ctrl *gomock.Controller) *MockBlockSync

NewMockBlockSync creates a new mock instance

func (*MockBlockSync) EXPECT Uses

func (m *MockBlockSync) EXPECT() *MockBlockSyncMockRecorder

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

func (*MockBlockSync) ProcessBlock Uses

func (m *MockBlockSync) ProcessBlock(ctx context.Context, blk *block.Block) error

ProcessBlock mocks base method

func (*MockBlockSync) ProcessBlockSync Uses

func (m *MockBlockSync) ProcessBlockSync(ctx context.Context, blk *block.Block) error

ProcessBlockSync mocks base method

func (*MockBlockSync) ProcessSyncRequest Uses

func (m *MockBlockSync) ProcessSyncRequest(ctx context.Context, peer go_libp2p_peerstore.PeerInfo, sync *iotexrpc.BlockSync) error

ProcessSyncRequest mocks base method

func (*MockBlockSync) Start Uses

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

Start mocks base method

func (*MockBlockSync) Stop Uses

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

Stop mocks base method

func (*MockBlockSync) TargetHeight Uses

func (m *MockBlockSync) TargetHeight() uint64

TargetHeight mocks base method

type MockBlockSyncMockRecorder Uses

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

MockBlockSyncMockRecorder is the mock recorder for MockBlockSync

func (*MockBlockSyncMockRecorder) ProcessBlock Uses

func (mr *MockBlockSyncMockRecorder) ProcessBlock(ctx, blk interface{}) *gomock.Call

ProcessBlock indicates an expected call of ProcessBlock

func (*MockBlockSyncMockRecorder) ProcessBlockSync Uses

func (mr *MockBlockSyncMockRecorder) ProcessBlockSync(ctx, blk interface{}) *gomock.Call

ProcessBlockSync indicates an expected call of ProcessBlockSync

func (*MockBlockSyncMockRecorder) ProcessSyncRequest Uses

func (mr *MockBlockSyncMockRecorder) ProcessSyncRequest(ctx, peer, sync interface{}) *gomock.Call

ProcessSyncRequest indicates an expected call of ProcessSyncRequest

func (*MockBlockSyncMockRecorder) Start Uses

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

Start indicates an expected call of Start

func (*MockBlockSyncMockRecorder) Stop Uses

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

Stop indicates an expected call of Stop

func (*MockBlockSyncMockRecorder) TargetHeight Uses

func (mr *MockBlockSyncMockRecorder) TargetHeight() *gomock.Call

TargetHeight indicates an expected call of TargetHeight

Package mock_blocksync imports 6 packages (graph). Updated 2019-12-08. Refresh now. Tools for package owners.