Documentation ¶
Index ¶
- type ChainSimulatorMock
- type NodeHandlerMock
- func (mock *NodeHandlerMock) Close() error
- func (mock *NodeHandlerMock) GetBroadcastMessenger() consensus.BroadcastMessenger
- func (mock *NodeHandlerMock) GetChainHandler() chainData.ChainHandler
- func (mock *NodeHandlerMock) GetCoreComponents() factory.CoreComponentsHolder
- func (mock *NodeHandlerMock) GetCryptoComponents() factory.CryptoComponentsHolder
- func (mock *NodeHandlerMock) GetFacadeHandler() shared.FacadeHandler
- func (mock *NodeHandlerMock) GetProcessComponents() factory.ProcessComponentsHolder
- func (mock *NodeHandlerMock) GetShardCoordinator() sharding.Coordinator
- func (mock *NodeHandlerMock) GetStateComponents() factory.StateComponentsHolder
- func (mock *NodeHandlerMock) GetStatusCoreComponents() factory.StatusCoreComponentsHolder
- func (mock *NodeHandlerMock) IsInterfaceNil() bool
- func (mock *NodeHandlerMock) SetKeyValueForAddress(addressBytes []byte, state map[string]string) error
- func (mock *NodeHandlerMock) SetStateForAddress(address []byte, state *dtos.AddressState) error
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) 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 -
Click to show internal directories.
Click to hide internal directories.