mock_blocksync

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_blocksync is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

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

func (*MockBlockSync) P2P

func (m *MockBlockSync) P2P() network.Overlay

P2P mocks base method

func (*MockBlockSync) ProcessBlock

func (m *MockBlockSync) ProcessBlock(blk *blockchain.Block) error

ProcessBlock mocks base method

func (*MockBlockSync) ProcessBlockSync

func (m *MockBlockSync) ProcessBlockSync(blk *blockchain.Block) error

ProcessBlockSync mocks base method

func (*MockBlockSync) ProcessSyncRequest

func (m *MockBlockSync) ProcessSyncRequest(sender string, sync *proto.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) P2P

P2P indicates an expected call of P2P

func (*MockBlockSyncMockRecorder) ProcessBlock

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

ProcessBlock indicates an expected call of ProcessBlock

func (*MockBlockSyncMockRecorder) ProcessBlockSync

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

ProcessBlockSync indicates an expected call of ProcessBlockSync

func (*MockBlockSyncMockRecorder) ProcessSyncRequest

func (mr *MockBlockSyncMockRecorder) ProcessSyncRequest(sender, 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

Jump to

Keyboard shortcuts

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