chainSimulator

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainSimulatorMock added in v1.7.6

type ChainSimulatorMock struct {
	GenerateBlocksCalled func(numOfBlocks int) error
	GetNodeHandlerCalled func(shardID uint32) process.NodeHandler
}

ChainSimulatorMock -

func (*ChainSimulatorMock) GenerateBlocks added in v1.7.6

func (mock *ChainSimulatorMock) GenerateBlocks(numOfBlocks int) error

GenerateBlocks -

func (*ChainSimulatorMock) GetNodeHandler added in v1.7.6

func (mock *ChainSimulatorMock) GetNodeHandler(shardID uint32) process.NodeHandler

GetNodeHandler -

func (*ChainSimulatorMock) IsInterfaceNil added in v1.7.6

func (mock *ChainSimulatorMock) IsInterfaceNil() bool

IsInterfaceNil -

type NodeHandlerMock

type NodeHandlerMock struct {
	GetProcessComponentsCalled    func() factory.ProcessComponentsHolder
	GetChainHandlerCalled         func() chainData.ChainHandler
	GetBroadcastMessengerCalled   func() consensus.BroadcastMessenger
	GetShardCoordinatorCalled     func() sharding.Coordinator
	GetCryptoComponentsCalled     func() factory.CryptoComponentsHolder
	GetCoreComponentsCalled       func() factory.CoreComponentsHolder
	GetStateComponentsCalled      func() factory.StateComponentsHolder
	GetFacadeHandlerCalled        func() shared.FacadeHandler
	GetStatusCoreComponentsCalled func() factory.StatusCoreComponentsHolder
	SetKeyValueForAddressCalled   func(addressBytes []byte, state map[string]string) error
	SetStateForAddressCalled      func(address []byte, state *dtos.AddressState) error
	CloseCalled                   func() error
}

NodeHandlerMock -

func (*NodeHandlerMock) Close

func (mock *NodeHandlerMock) Close() error

Close -

func (*NodeHandlerMock) GetBroadcastMessenger

func (mock *NodeHandlerMock) GetBroadcastMessenger() consensus.BroadcastMessenger

GetBroadcastMessenger -

func (*NodeHandlerMock) GetChainHandler

func (mock *NodeHandlerMock) GetChainHandler() chainData.ChainHandler

GetChainHandler -

func (*NodeHandlerMock) GetCoreComponents

func (mock *NodeHandlerMock) GetCoreComponents() factory.CoreComponentsHolder

GetCoreComponents -

func (*NodeHandlerMock) GetCryptoComponents

func (mock *NodeHandlerMock) GetCryptoComponents() factory.CryptoComponentsHolder

GetCryptoComponents -

func (*NodeHandlerMock) GetFacadeHandler

func (mock *NodeHandlerMock) GetFacadeHandler() shared.FacadeHandler

GetFacadeHandler -

func (*NodeHandlerMock) GetProcessComponents

func (mock *NodeHandlerMock) GetProcessComponents() factory.ProcessComponentsHolder

GetProcessComponents -

func (*NodeHandlerMock) GetShardCoordinator

func (mock *NodeHandlerMock) GetShardCoordinator() sharding.Coordinator

GetShardCoordinator -

func (*NodeHandlerMock) GetStateComponents

func (mock *NodeHandlerMock) GetStateComponents() factory.StateComponentsHolder

GetStateComponents -

func (*NodeHandlerMock) GetStatusCoreComponents

func (mock *NodeHandlerMock) GetStatusCoreComponents() factory.StatusCoreComponentsHolder

GetStatusCoreComponents -

func (*NodeHandlerMock) IsInterfaceNil

func (mock *NodeHandlerMock) IsInterfaceNil() bool

IsInterfaceNil -

func (*NodeHandlerMock) SetKeyValueForAddress

func (mock *NodeHandlerMock) SetKeyValueForAddress(addressBytes []byte, state map[string]string) error

SetKeyValueForAddress -

func (*NodeHandlerMock) SetStateForAddress

func (mock *NodeHandlerMock) SetStateForAddress(address []byte, state *dtos.AddressState) error

SetStateForAddress -

Jump to

Keyboard shortcuts

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