Versions in this module Expand all Collapse all v1 v1.999.0 Nov 17, 2022 Changes in this version + var ErrMockMarshalizer = errors.New("MarshalizerMock generic error") + var ErrNilObjectToMarshal = errors.New("nil object to serialize from") + type AlarmSchedulerStub struct + AddCalled func(func(alarmID string), time.Duration, string) + CancelCalled func(string) + CloseCalled func() + ResetCalled func(string) + func (a *AlarmSchedulerStub) Add(callback func(alarmID string), duration time.Duration, alarmID string) + func (a *AlarmSchedulerStub) Cancel(alarmID string) + func (a *AlarmSchedulerStub) Close() + func (a *AlarmSchedulerStub) IsInterfaceNil() bool + func (a *AlarmSchedulerStub) Reset(alarmID string) + type AppStatusHandlerStub struct + AddUint64Handler func(key string, value uint64) + CloseHandler func() + DecrementHandler func(key string) + IncrementHandler func(key string) + SetInt64ValueHandler func(key string, value int64) + SetStringValueHandler func(key string, value string) + SetUInt64ValueHandler func(key string, value uint64) + func (ashs *AppStatusHandlerStub) AddUint64(key string, value uint64) + func (ashs *AppStatusHandlerStub) Close() + func (ashs *AppStatusHandlerStub) Decrement(key string) + func (ashs *AppStatusHandlerStub) Increment(key string) + func (ashs *AppStatusHandlerStub) IsInterfaceNil() bool + func (ashs *AppStatusHandlerStub) SetInt64Value(key string, value int64) + func (ashs *AppStatusHandlerStub) SetStringValue(key string, value string) + func (ashs *AppStatusHandlerStub) SetUInt64Value(key string, value uint64) + type ConnectedAddressesMock struct + func (cam *ConnectedAddressesMock) ConnectedAddresses() []string + type EpochSubscriberHandlerStub struct + EpochConfirmedCalled func(epoch uint32, timestamp uint64) + func (eshs *EpochSubscriberHandlerStub) EpochConfirmed(epoch uint32, timestamp uint64) + func (eshs *EpochSubscriberHandlerStub) IsInterfaceNil() bool + type GasScheduleSubscribeHandlerStub struct + GasScheduleChangeCalled func(gasSchedule map[string]map[string]uint64) + func (g *GasScheduleSubscribeHandlerStub) GasScheduleChange(gasSchedule map[string]map[string]uint64) + func (g *GasScheduleSubscribeHandlerStub) IsInterfaceNil() bool + type HasherMock struct + func (HasherMock) Size() int + func (sha HasherMock) Compute(s string) []byte + func (sha HasherMock) EmptyHash() []byte + func (sha HasherMock) IsInterfaceNil() bool + type HasherStub struct + ComputeCalled func(s string) []byte + EmptyHashCalled func() []byte + SizeCalled func() int + func (hash *HasherStub) Compute(s string) []byte + func (hash *HasherStub) EmptyHash() []byte + func (hash *HasherStub) IsInterfaceNil() bool + func (hash *HasherStub) Size() int + type HeaderHandlerStub struct + CheckChainIDCalled func(reference []byte) error + CloneCalled func() data.HeaderHandler + EpochField uint32 + GetChainIDCalled func() []byte + GetMiniBlockHeadersWithDstCalled func(destId uint32) map[string]uint32 + GetOrderedCrossMiniblocksWithDstCalled func(destId uint32) []*data.MiniBlockInfo + GetPrevHashCalled func() []byte + GetPrevRandSeedCalled func() []byte + GetPubKeysBitmapCalled func() []byte + GetRandSeedCalled func() []byte + GetReservedCalled func() []byte + GetRootHashCalled func() []byte + GetSignatureCalled func() []byte + IsStartOfEpochBlockCalled func() bool + TimestampField uint64 + func (hhs *HeaderHandlerStub) Clone() data.HeaderHandler + func (hhs *HeaderHandlerStub) GetAccumulatedFees() *big.Int + func (hhs *HeaderHandlerStub) GetChainID() []byte + func (hhs *HeaderHandlerStub) GetDeveloperFees() *big.Int + func (hhs *HeaderHandlerStub) GetEpoch() uint32 + func (hhs *HeaderHandlerStub) GetEpochStartMetaHash() []byte + func (hhs *HeaderHandlerStub) GetLeaderSignature() []byte + func (hhs *HeaderHandlerStub) GetMiniBlockHeadersHashes() [][]byte + func (hhs *HeaderHandlerStub) GetMiniBlockHeadersWithDst(destId uint32) map[string]uint32 + func (hhs *HeaderHandlerStub) GetNonce() uint64 + func (hhs *HeaderHandlerStub) GetOrderedCrossMiniblocksWithDst(destId uint32) []*data.MiniBlockInfo + func (hhs *HeaderHandlerStub) GetPrevHash() []byte + func (hhs *HeaderHandlerStub) GetPrevRandSeed() []byte + func (hhs *HeaderHandlerStub) GetPubKeysBitmap() []byte + func (hhs *HeaderHandlerStub) GetRandSeed() []byte + func (hhs *HeaderHandlerStub) GetReceiptsHash() []byte + func (hhs *HeaderHandlerStub) GetReserved() []byte + func (hhs *HeaderHandlerStub) GetRootHash() []byte + func (hhs *HeaderHandlerStub) GetRound() uint64 + func (hhs *HeaderHandlerStub) GetShardID() uint32 + func (hhs *HeaderHandlerStub) GetSignature() []byte + func (hhs *HeaderHandlerStub) GetSoftwareVersion() []byte + func (hhs *HeaderHandlerStub) GetTimeStamp() uint64 + func (hhs *HeaderHandlerStub) GetTxCount() uint32 + func (hhs *HeaderHandlerStub) GetValidatorStatsRootHash() []byte + func (hhs *HeaderHandlerStub) IsInterfaceNil() bool + func (hhs *HeaderHandlerStub) IsStartOfEpochBlock() bool + func (hhs *HeaderHandlerStub) SetAccumulatedFees(_ *big.Int) + func (hhs *HeaderHandlerStub) SetChainID(_ []byte) + func (hhs *HeaderHandlerStub) SetDeveloperFees(_ *big.Int) + func (hhs *HeaderHandlerStub) SetEpoch(_ uint32) + func (hhs *HeaderHandlerStub) SetLeaderSignature(_ []byte) + func (hhs *HeaderHandlerStub) SetNonce(_ uint64) + func (hhs *HeaderHandlerStub) SetPrevHash(_ []byte) + func (hhs *HeaderHandlerStub) SetPrevRandSeed(_ []byte) + func (hhs *HeaderHandlerStub) SetPubKeysBitmap(_ []byte) + func (hhs *HeaderHandlerStub) SetRandSeed(_ []byte) + func (hhs *HeaderHandlerStub) SetRootHash(_ []byte) + func (hhs *HeaderHandlerStub) SetRound(_ uint64) + func (hhs *HeaderHandlerStub) SetShardID(_ uint32) + func (hhs *HeaderHandlerStub) SetSignature(_ []byte) + func (hhs *HeaderHandlerStub) SetSoftwareVersion(_ []byte) + func (hhs *HeaderHandlerStub) SetTimeStamp(_ uint64) + func (hhs *HeaderHandlerStub) SetTxCount(_ uint32) + func (hhs *HeaderHandlerStub) SetValidatorStatsRootHash(_ []byte) + type IntRandomizerStub struct + IntnCalled func(n int) int + func (irs *IntRandomizerStub) Intn(n int) int + func (irs *IntRandomizerStub) IsInterfaceNil() bool + type LoggerMock struct + func (c LoggerMock) Debug(message string, args ...interface{}) + func (c LoggerMock) Error(message string, args ...interface{}) + func (c LoggerMock) Info(message string, args ...interface{}) + func (c LoggerMock) IsInterfaceNil() bool + func (c LoggerMock) LogIfError(err error, args ...interface{}) + func (c LoggerMock) Trace(message string, args ...interface{}) + func (c LoggerMock) Warn(message string, args ...interface{}) + type MarshalizerMock struct + Fail bool + func (mm *MarshalizerMock) IsInterfaceNil() bool + func (mm *MarshalizerMock) Marshal(obj interface{}) ([]byte, error) + func (mm *MarshalizerMock) Unmarshal(obj interface{}, buff []byte) error + type MarshalizerStub struct + MarshalCalled func(obj interface{}) ([]byte, error) + UnmarshalCalled func(obj interface{}, buff []byte) error + func (ms *MarshalizerStub) IsInterfaceNil() bool + func (ms *MarshalizerStub) Marshal(obj interface{}) ([]byte, error) + func (ms *MarshalizerStub) Unmarshal(obj interface{}, buff []byte) error + type PathManagerStub struct + DatabasePathCalled func() string + PathForEpochCalled func(shardId string, epoch uint32, identifier string) string + PathForStaticCalled func(shardId string, identifier string) string + func (p *PathManagerStub) DatabasePath() string + func (p *PathManagerStub) IsInterfaceNil() bool + func (p *PathManagerStub) PathForEpoch(shardId string, epoch uint32, identifier string) string + func (p *PathManagerStub) PathForStatic(shardId string, identifier string) string + type StableTagProviderStub struct + FetchTagVersionCalled func() (string, error) + func (s *StableTagProviderStub) FetchTagVersion() (string, error) + func (s *StableTagProviderStub) IsInterfaceNil() bool + type StatusHandlerMock struct + func (s *StatusHandlerMock) AddUint64(_ string, _ uint64) + func (s *StatusHandlerMock) Close() + func (s *StatusHandlerMock) Decrement(_ string) + func (s *StatusHandlerMock) Increment(_ string) + func (s *StatusHandlerMock) IsInterfaceNil() bool + func (s *StatusHandlerMock) SetInt64Value(_ string, _ int64) + func (s *StatusHandlerMock) SetStringValue(_ string, _ string) + func (s *StatusHandlerMock) SetUInt64Value(_ string, _ uint64)