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) GetDataComponents() factory.DataComponentsHolder
- 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) RemoveAccount(address []byte) error
- 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 GetDataComponentsCalled func() factory.DataComponentsHandler 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 RemoveAccountCalled func(address []byte) 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) GetDataComponents ¶ added in v1.7.9
func (mock *NodeHandlerMock) GetDataComponents() factory.DataComponentsHolder
GetDataComponents -
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) RemoveAccount ¶ added in v1.7.9
func (mock *NodeHandlerMock) RemoveAccount(address []byte) error
RemoveAccount -
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.