Versions in this module Expand all Collapse all v1 v1.999.0 Nov 17, 2022 Changes in this version + type ActionHandlerStub struct + EpochStartActionCalled func(hdr data.HeaderHandler) + EpochStartPrepareCalled func(metaHdr data.HeaderHandler, body data.BodyHandler) + NotifyOrderCalled func() uint32 + func (ahs *ActionHandlerStub) EpochStartAction(hdr data.HeaderHandler) + func (ahs *ActionHandlerStub) EpochStartPrepare(metaHdr data.HeaderHandler, body data.BodyHandler) + func (ahs *ActionHandlerStub) NotifyOrder() uint32 + type ChainStorerMock struct + BlockHeaders *StorerMock + Logs *StorerMock + MetaHdrNonce *StorerMock + Metablocks *StorerMock + Miniblocks *StorerMock + Others *StorerMock + Receipts *StorerMock + Rewards *StorerMock + ScheduledSCRs *StorerMock + ShardHdrNonce *StorerMock + Transactions *StorerMock + Unsigned *StorerMock + func NewChainStorerMock(epoch uint32) *ChainStorerMock + func (sm *ChainStorerMock) AddStorer(_ dataRetriever.UnitType, _ storage.Storer) + func (sm *ChainStorerMock) CloseAll() error + func (sm *ChainStorerMock) Destroy() error + func (sm *ChainStorerMock) Get(unitType dataRetriever.UnitType, key []byte) ([]byte, error) + func (sm *ChainStorerMock) GetAll(unitType dataRetriever.UnitType, keys [][]byte) (map[string][]byte, error) + func (sm *ChainStorerMock) GetAllStorers() map[dataRetriever.UnitType]storage.Storer + func (sm *ChainStorerMock) GetStorer(unitType dataRetriever.UnitType) storage.Storer + func (sm *ChainStorerMock) Has(_ dataRetriever.UnitType, _ []byte) error + func (sm *ChainStorerMock) IsInterfaceNil() bool + func (sm *ChainStorerMock) Put(unitType dataRetriever.UnitType, key []byte, value []byte) error + func (sm *ChainStorerMock) SetEpochForPutOperation(_ uint32) + type StorerMock struct + DataByEpoch map[uint32]*container.MutexMap + Name string + func NewStorerMock() *StorerMock + func NewStorerMockWithEpoch(currentEpoch uint32) *StorerMock + func NewStorerMockWithErrKeyNotFound(currentEpoch uint32) *StorerMock + func (sm *StorerMock) ClearAll() + func (sm *StorerMock) ClearCache() + func (sm *StorerMock) Close() error + func (sm *StorerMock) DestroyUnit() error + func (sm *StorerMock) Get(key []byte) ([]byte, error) + func (sm *StorerMock) GetBulkFromEpoch(keys [][]byte, epoch uint32) ([]storageCore.KeyValuePair, error) + func (sm *StorerMock) GetCurrentEpochData() *container.MutexMap + func (sm *StorerMock) GetEpochData(epoch uint32) *container.MutexMap + func (sm *StorerMock) GetFromEpoch(key []byte, epoch uint32) ([]byte, error) + func (sm *StorerMock) GetFromEpochWithMarshalizer(key []byte, epoch uint32, obj interface{}, marshalizer marshal.Marshalizer) error + func (sm *StorerMock) GetOldestEpoch() (uint32, error) + func (sm *StorerMock) Has(key []byte) error + func (sm *StorerMock) IsInterfaceNil() bool + func (sm *StorerMock) Put(key, value []byte) error + func (sm *StorerMock) PutInEpoch(key, value []byte, epoch uint32) error + func (sm *StorerMock) PutWithMarshalizer(key []byte, obj interface{}, marshalizer marshal.Marshalizer) error + func (sm *StorerMock) RangeKeys(handler func(key []byte, value []byte) bool) + func (sm *StorerMock) Remove(_ []byte) error + func (sm *StorerMock) RemoveFromCurrentEpoch(_ []byte) error + func (sm *StorerMock) SearchFirst(key []byte) ([]byte, error) + func (sm *StorerMock) SetCurrentEpoch(epoch uint32)