Documentation ¶
Index ¶
- type GitFetcherStub
- type NodeHandlerStub
- func (n *NodeHandlerStub) Close() error
- func (n *NodeHandlerStub) ForceChangeOfEpoch() error
- func (n *NodeHandlerStub) GetBroadcastMessenger() consensus.BroadcastMessenger
- func (n *NodeHandlerStub) GetChainHandler() data.ChainHandler
- func (n *NodeHandlerStub) GetCoreComponents() factory.CoreComponentsHolder
- func (n *NodeHandlerStub) GetCryptoComponents() factory.CryptoComponentsHolder
- func (n *NodeHandlerStub) GetDataComponents() factory.DataComponentsHolder
- func (n *NodeHandlerStub) GetFacadeHandler() shared.FacadeHandler
- func (n *NodeHandlerStub) GetProcessComponents() factory.ProcessComponentsHolder
- func (n *NodeHandlerStub) GetShardCoordinator() sharding.Coordinator
- func (n *NodeHandlerStub) GetStateComponents() factory.StateComponentsHolder
- func (n *NodeHandlerStub) GetStatusCoreComponents() factory.StatusCoreComponentsHolder
- func (n *NodeHandlerStub) IsInterfaceNil() bool
- func (n *NodeHandlerStub) RemoveAccount(_ []byte) error
- func (n *NodeHandlerStub) SetKeyValueForAddress(_ []byte, _ map[string]string) error
- func (n *NodeHandlerStub) SetStateForAddress(_ []byte, _ *dtos.AddressState) error
- type SimulatorHandlerMock
- func (mock *SimulatorHandlerMock) AddValidatorKeys(validatorsPrivateKeys [][]byte) error
- func (mock *SimulatorHandlerMock) ForceChangeOfEpoch() error
- func (mock *SimulatorHandlerMock) ForceResetValidatorStatisticsCache() error
- func (mock *SimulatorHandlerMock) GenerateBlocks(numOfBlocks int) error
- func (mock *SimulatorHandlerMock) GenerateBlocksUntilEpochIsReached(targetEpoch int32) error
- func (mock *SimulatorHandlerMock) GetInitialWalletKeys() *dtos.InitialWalletKeys
- func (mock *SimulatorHandlerMock) GetNodeHandler(shardID uint32) process.NodeHandler
- func (mock *SimulatorHandlerMock) GetRestAPIInterfaces() map[uint32]string
- func (mock *SimulatorHandlerMock) IsInterfaceNil() bool
- func (mock *SimulatorHandlerMock) RemoveAccounts(addresses []string) error
- func (mock *SimulatorHandlerMock) SetKeyValueForAddress(address string, keyValueMap map[string]string) error
- func (mock *SimulatorHandlerMock) SetStateMultiple(stateSlice []*dtos.AddressState) error
- type TransactionHandlerMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitFetcherStub ¶
type GitFetcherStub struct { CloneCalled func(r, d string) error CheckoutCalled func(repoDir string, commitHashOrBranch string) error }
GitFetcherStub -
type NodeHandlerStub ¶ added in v1.8.0
type NodeHandlerStub struct {
GetProcessComponentsCalled func() factory.ProcessComponentsHolder
}
NodeHandlerStub -
func (*NodeHandlerStub) ForceChangeOfEpoch ¶ added in v1.8.0
func (n *NodeHandlerStub) ForceChangeOfEpoch() error
ForceChangeOfEpoch -
func (*NodeHandlerStub) GetBroadcastMessenger ¶ added in v1.8.0
func (n *NodeHandlerStub) GetBroadcastMessenger() consensus.BroadcastMessenger
GetBroadcastMessenger -
func (*NodeHandlerStub) GetChainHandler ¶ added in v1.8.0
func (n *NodeHandlerStub) GetChainHandler() data.ChainHandler
GetChainHandler -
func (*NodeHandlerStub) GetCoreComponents ¶ added in v1.8.0
func (n *NodeHandlerStub) GetCoreComponents() factory.CoreComponentsHolder
GetCoreComponents -
func (*NodeHandlerStub) GetCryptoComponents ¶ added in v1.8.0
func (n *NodeHandlerStub) GetCryptoComponents() factory.CryptoComponentsHolder
GetCryptoComponents -
func (*NodeHandlerStub) GetDataComponents ¶ added in v1.8.0
func (n *NodeHandlerStub) GetDataComponents() factory.DataComponentsHolder
GetDataComponents -
func (*NodeHandlerStub) GetFacadeHandler ¶ added in v1.8.0
func (n *NodeHandlerStub) GetFacadeHandler() shared.FacadeHandler
GetFacadeHandler -
func (*NodeHandlerStub) GetProcessComponents ¶ added in v1.8.0
func (n *NodeHandlerStub) GetProcessComponents() factory.ProcessComponentsHolder
GetProcessComponents -
func (*NodeHandlerStub) GetShardCoordinator ¶ added in v1.8.0
func (n *NodeHandlerStub) GetShardCoordinator() sharding.Coordinator
GetShardCoordinator -
func (*NodeHandlerStub) GetStateComponents ¶ added in v1.8.0
func (n *NodeHandlerStub) GetStateComponents() factory.StateComponentsHolder
GetStateComponents -
func (*NodeHandlerStub) GetStatusCoreComponents ¶ added in v1.8.0
func (n *NodeHandlerStub) GetStatusCoreComponents() factory.StatusCoreComponentsHolder
GetStatusCoreComponents -
func (*NodeHandlerStub) IsInterfaceNil ¶ added in v1.8.0
func (n *NodeHandlerStub) IsInterfaceNil() bool
IsInterfaceNil -
func (*NodeHandlerStub) RemoveAccount ¶ added in v1.8.0
func (n *NodeHandlerStub) RemoveAccount(_ []byte) error
RemoveAccount -
func (*NodeHandlerStub) SetKeyValueForAddress ¶ added in v1.8.0
func (n *NodeHandlerStub) SetKeyValueForAddress(_ []byte, _ map[string]string) error
SetKeyValueForAddress -
func (*NodeHandlerStub) SetStateForAddress ¶ added in v1.8.0
func (n *NodeHandlerStub) SetStateForAddress(_ []byte, _ *dtos.AddressState) error
SetStateForAddress -
type SimulatorHandlerMock ¶ added in v1.7.1
type SimulatorHandlerMock struct { GetInitialWalletKeysCalled func() *dtos.InitialWalletKeys GenerateBlocksCalled func(numOfBlocks int) error SetKeyValueForAddressCalled func(address string, keyValueMap map[string]string) error SetStateMultipleCalled func(stateSlice []*dtos.AddressState) error AddValidatorKeysCalled func(validatorsPrivateKeys [][]byte) error GenerateBlocksUntilEpochIsReachedCalled func(targetEpoch int32) error ForceResetValidatorStatisticsCacheCalled func() error RemoveAccountsCalled func(addresses []string) error GetRestAPIInterfacesCalled func() map[uint32]string ForceChangeOfEpochCalled func() error GetNodeHandlerCalled func(shardID uint32) process.NodeHandler }
SimulatorHandlerMock -
func (*SimulatorHandlerMock) AddValidatorKeys ¶ added in v1.7.1
func (mock *SimulatorHandlerMock) AddValidatorKeys(validatorsPrivateKeys [][]byte) error
AddValidatorKeys -
func (*SimulatorHandlerMock) ForceChangeOfEpoch ¶ added in v1.7.13
func (mock *SimulatorHandlerMock) ForceChangeOfEpoch() error
ForceChangeOfEpoch -
func (*SimulatorHandlerMock) ForceResetValidatorStatisticsCache ¶ added in v1.7.4
func (mock *SimulatorHandlerMock) ForceResetValidatorStatisticsCache() error
ForceResetValidatorStatisticsCache -
func (*SimulatorHandlerMock) GenerateBlocks ¶ added in v1.7.1
func (mock *SimulatorHandlerMock) GenerateBlocks(numOfBlocks int) error
GenerateBlocks -
func (*SimulatorHandlerMock) GenerateBlocksUntilEpochIsReached ¶ added in v1.7.4
func (mock *SimulatorHandlerMock) GenerateBlocksUntilEpochIsReached(targetEpoch int32) error
GenerateBlocksUntilEpochIsReached -
func (*SimulatorHandlerMock) GetInitialWalletKeys ¶ added in v1.7.1
func (mock *SimulatorHandlerMock) GetInitialWalletKeys() *dtos.InitialWalletKeys
GetInitialWalletKeys -
func (*SimulatorHandlerMock) GetNodeHandler ¶ added in v1.7.13
func (mock *SimulatorHandlerMock) GetNodeHandler(shardID uint32) process.NodeHandler
GetNodeHandler -
func (*SimulatorHandlerMock) GetRestAPIInterfaces ¶ added in v1.7.7
func (mock *SimulatorHandlerMock) GetRestAPIInterfaces() map[uint32]string
GetRestAPIInterfaces -
func (*SimulatorHandlerMock) IsInterfaceNil ¶ added in v1.7.1
func (mock *SimulatorHandlerMock) IsInterfaceNil() bool
IsInterfaceNil -
func (*SimulatorHandlerMock) RemoveAccounts ¶ added in v1.7.6
func (mock *SimulatorHandlerMock) RemoveAccounts(addresses []string) error
RemoveAccounts -
func (*SimulatorHandlerMock) SetKeyValueForAddress ¶ added in v1.7.1
func (mock *SimulatorHandlerMock) SetKeyValueForAddress(address string, keyValueMap map[string]string) error
SetKeyValueForAddress -
func (*SimulatorHandlerMock) SetStateMultiple ¶ added in v1.7.1
func (mock *SimulatorHandlerMock) SetStateMultiple(stateSlice []*dtos.AddressState) error
SetStateMultiple -
type TransactionHandlerMock ¶ added in v1.7.13
type TransactionHandlerMock struct {
GetProcessedTransactionStatusCalled func(txHash string) (*data.ProcessStatusResponse, error)
}
TransactionHandlerMock -
func (*TransactionHandlerMock) GetProcessedTransactionStatus ¶ added in v1.7.13
func (th *TransactionHandlerMock) GetProcessedTransactionStatus(txHash string) (*data.ProcessStatusResponse, error)
GetProcessedTransactionStatus -