Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockBlockPoolInterface
- func (m *MockBlockPoolInterface) BlockRequestCh() chan core.BlockRequestPars
- func (m *MockBlockPoolInterface) EXPECT() *MockBlockPoolInterfaceMockRecorder
- func (m *MockBlockPoolInterface) GetBlockchain() *core.Blockchain
- func (m *MockBlockPoolInterface) GetSyncState() bool
- func (m *MockBlockPoolInterface) Push(arg0 *core.Block, arg1 go_libp2p_peer.ID)
- func (m *MockBlockPoolInterface) SetBlockchain(arg0 *core.Blockchain)
- func (m *MockBlockPoolInterface) SetSyncState(arg0 bool)
- func (m *MockBlockPoolInterface) VerifyTransactions(arg0 core.UTXOIndex, arg1 []*core.Block) bool
- type MockBlockPoolInterfaceMockRecorder
- func (mr *MockBlockPoolInterfaceMockRecorder) BlockRequestCh() *gomock.Call
- func (mr *MockBlockPoolInterfaceMockRecorder) GetBlockchain() *gomock.Call
- func (mr *MockBlockPoolInterfaceMockRecorder) GetSyncState() *gomock.Call
- func (mr *MockBlockPoolInterfaceMockRecorder) Push(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBlockPoolInterfaceMockRecorder) SetBlockchain(arg0 interface{}) *gomock.Call
- func (mr *MockBlockPoolInterfaceMockRecorder) SetSyncState(arg0 interface{}) *gomock.Call
- func (mr *MockBlockPoolInterfaceMockRecorder) VerifyTransactions(arg0, arg1 interface{}) *gomock.Call
- type MockConsensus
- func (m *MockConsensus) AddProducer(arg0 string) error
- func (m *MockConsensus) EXPECT() *MockConsensusMockRecorder
- func (m *MockConsensus) GetProducers() []string
- func (m *MockConsensus) IsProducingBlock() bool
- func (m *MockConsensus) SetKey(arg0 string)
- func (m *MockConsensus) Setup(arg0 core.NetService, arg1 string)
- func (m *MockConsensus) Start()
- func (m *MockConsensus) Stop()
- func (m *MockConsensus) Validate(arg0 *core.Block) bool
- type MockConsensusMockRecorder
- func (mr *MockConsensusMockRecorder) AddProducer(arg0 interface{}) *gomock.Call
- func (mr *MockConsensusMockRecorder) GetProducers() *gomock.Call
- func (mr *MockConsensusMockRecorder) IsProducingBlock() *gomock.Call
- func (mr *MockConsensusMockRecorder) SetKey(arg0 interface{}) *gomock.Call
- func (mr *MockConsensusMockRecorder) Setup(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockConsensusMockRecorder) Start() *gomock.Call
- func (mr *MockConsensusMockRecorder) Stop() *gomock.Call
- func (mr *MockConsensusMockRecorder) Validate(arg0 interface{}) *gomock.Call
- type MockNetService
- type MockNetServiceMockRecorder
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 ¶
func (m *MockBlockPoolInterface) EXPECT() *MockBlockPoolInterfaceMockRecorder
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 ¶
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 ¶
func (m *MockConsensus) EXPECT() *MockConsensusMockRecorder
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) Setup ¶
func (m *MockConsensus) Setup(arg0 core.NetService, arg1 string)
Setup 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 ¶
func (mr *MockConsensusMockRecorder) Stop() *gomock.Call
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 ¶
func (m *MockNetService) EXPECT() *MockNetServiceMockRecorder
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