mocks

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2018 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBlockPoolInterface

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

MockBlockPoolInterface is a mock of BlockPoolInterface interface

func NewMockBlockPoolInterface

func NewMockBlockPoolInterface(ctrl *gomock.Controller) *MockBlockPoolInterface

NewMockBlockPoolInterface creates a new mock instance

func (*MockBlockPoolInterface) BlockRequestCh

func (m *MockBlockPoolInterface) BlockRequestCh() chan core.BlockRequestPars

BlockRequestCh mocks base method

func (*MockBlockPoolInterface) EXPECT

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

func (*MockBlockPoolInterface) GetBlockchain

func (m *MockBlockPoolInterface) GetBlockchain() *core.Blockchain

GetBlockchain mocks base method

func (*MockBlockPoolInterface) GetSyncState

func (m *MockBlockPoolInterface) GetSyncState() bool

GetSyncState mocks base method

func (*MockBlockPoolInterface) Push

func (m *MockBlockPoolInterface) Push(arg0 *core.Block, arg1 go_libp2p_peer.ID)

Push mocks base method

func (*MockBlockPoolInterface) SetBlockchain

func (m *MockBlockPoolInterface) SetBlockchain(arg0 *core.Blockchain)

SetBlockchain mocks base method

func (*MockBlockPoolInterface) SetSyncState

func (m *MockBlockPoolInterface) SetSyncState(arg0 bool)

SetSyncState mocks base method

func (*MockBlockPoolInterface) VerifyTransactions

func (m *MockBlockPoolInterface) VerifyTransactions(arg0 core.UTXOIndex, arg1 []*core.Block) bool

VerifyTransactions mocks base method

type MockBlockPoolInterfaceMockRecorder

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

MockBlockPoolInterfaceMockRecorder is the mock recorder for MockBlockPoolInterface

func (*MockBlockPoolInterfaceMockRecorder) BlockRequestCh

func (mr *MockBlockPoolInterfaceMockRecorder) BlockRequestCh() *gomock.Call

BlockRequestCh indicates an expected call of BlockRequestCh

func (*MockBlockPoolInterfaceMockRecorder) GetBlockchain

func (mr *MockBlockPoolInterfaceMockRecorder) GetBlockchain() *gomock.Call

GetBlockchain indicates an expected call of GetBlockchain

func (*MockBlockPoolInterfaceMockRecorder) GetSyncState

func (mr *MockBlockPoolInterfaceMockRecorder) GetSyncState() *gomock.Call

GetSyncState indicates an expected call of GetSyncState

func (*MockBlockPoolInterfaceMockRecorder) Push

func (mr *MockBlockPoolInterfaceMockRecorder) Push(arg0, arg1 interface{}) *gomock.Call

Push indicates an expected call of Push

func (*MockBlockPoolInterfaceMockRecorder) SetBlockchain

func (mr *MockBlockPoolInterfaceMockRecorder) SetBlockchain(arg0 interface{}) *gomock.Call

SetBlockchain indicates an expected call of SetBlockchain

func (*MockBlockPoolInterfaceMockRecorder) SetSyncState

func (mr *MockBlockPoolInterfaceMockRecorder) SetSyncState(arg0 interface{}) *gomock.Call

SetSyncState indicates an expected call of SetSyncState

func (*MockBlockPoolInterfaceMockRecorder) VerifyTransactions

func (mr *MockBlockPoolInterfaceMockRecorder) VerifyTransactions(arg0, arg1 interface{}) *gomock.Call

VerifyTransactions indicates an expected call of VerifyTransactions

type MockConsensus

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

MockConsensus is a mock of Consensus interface

func NewMockConsensus

func NewMockConsensus(ctrl *gomock.Controller) *MockConsensus

NewMockConsensus creates a new mock instance

func (*MockConsensus) AddProducer

func (m *MockConsensus) AddProducer(arg0 string) error

AddProducer mocks base method

func (*MockConsensus) EXPECT

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

func (*MockConsensus) GetProducers

func (m *MockConsensus) GetProducers() []string

GetProducers mocks base method

func (*MockConsensus) IsProducingBlock

func (m *MockConsensus) IsProducingBlock() bool

IsProducingBlock mocks base method

func (*MockConsensus) SetKey

func (m *MockConsensus) SetKey(arg0 string)

SetKey mocks base method

func (*MockConsensus) Setup

func (m *MockConsensus) Setup(arg0 core.NetService, arg1 string)

Setup mocks base method

func (*MockConsensus) Start

func (m *MockConsensus) Start()

Start mocks base method

func (*MockConsensus) Stop

func (m *MockConsensus) Stop()

Stop mocks base method

func (*MockConsensus) Validate

func (m *MockConsensus) Validate(arg0 *core.Block) bool

Validate mocks base method

type MockConsensusMockRecorder

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

MockConsensusMockRecorder is the mock recorder for MockConsensus

func (*MockConsensusMockRecorder) AddProducer

func (mr *MockConsensusMockRecorder) AddProducer(arg0 interface{}) *gomock.Call

AddProducer indicates an expected call of AddProducer

func (*MockConsensusMockRecorder) GetProducers

func (mr *MockConsensusMockRecorder) GetProducers() *gomock.Call

GetProducers indicates an expected call of GetProducers

func (*MockConsensusMockRecorder) IsProducingBlock

func (mr *MockConsensusMockRecorder) IsProducingBlock() *gomock.Call

IsProducingBlock indicates an expected call of IsProducingBlock

func (*MockConsensusMockRecorder) SetKey

func (mr *MockConsensusMockRecorder) SetKey(arg0 interface{}) *gomock.Call

SetKey indicates an expected call of SetKey

func (*MockConsensusMockRecorder) Setup

func (mr *MockConsensusMockRecorder) Setup(arg0, arg1 interface{}) *gomock.Call

Setup indicates an expected call of Setup

func (*MockConsensusMockRecorder) Start

func (mr *MockConsensusMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start

func (*MockConsensusMockRecorder) Stop

Stop indicates an expected call of Stop

func (*MockConsensusMockRecorder) Validate

func (mr *MockConsensusMockRecorder) Validate(arg0 interface{}) *gomock.Call

Validate indicates an expected call of Validate

type MockNetService

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

MockNetService is a mock of NetService interface

func NewMockNetService

func NewMockNetService(ctrl *gomock.Controller) *MockNetService

NewMockNetService creates a new mock instance

func (*MockNetService) BroadcastBlock

func (m *MockNetService) BroadcastBlock(arg0 *core.Block) error

BroadcastBlock mocks base method

func (*MockNetService) EXPECT

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

func (*MockNetService) GetBlockchain

func (m *MockNetService) GetBlockchain() *core.Blockchain

GetBlockchain mocks base method

func (*MockNetService) GetPeerID

func (m *MockNetService) GetPeerID() go_libp2p_peer.ID

GetPeerID mocks base method

type MockNetServiceMockRecorder

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

MockNetServiceMockRecorder is the mock recorder for MockNetService

func (*MockNetServiceMockRecorder) BroadcastBlock

func (mr *MockNetServiceMockRecorder) BroadcastBlock(arg0 interface{}) *gomock.Call

BroadcastBlock indicates an expected call of BroadcastBlock

func (*MockNetServiceMockRecorder) GetBlockchain

func (mr *MockNetServiceMockRecorder) GetBlockchain() *gomock.Call

GetBlockchain indicates an expected call of GetBlockchain

func (*MockNetServiceMockRecorder) GetPeerID

func (mr *MockNetServiceMockRecorder) GetPeerID() *gomock.Call

GetPeerID indicates an expected call of GetPeerID

Jump to

Keyboard shortcuts

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