Documentation ¶
Index ¶
- type GitFetcherStub
- 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 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 -
Click to show internal directories.
Click to hide internal directories.