metastoragemocks

package
v0.0.0-...-ae0dd77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package metastoragemocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBlockStorage

type MockBlockStorage struct {
	// contains filtered or unexported fields
}

MockBlockStorage is a mock of BlockStorage interface.

func NewMockBlockStorage

func NewMockBlockStorage(ctrl *gomock.Controller) *MockBlockStorage

NewMockBlockStorage creates a new mock instance.

func (*MockBlockStorage) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBlockStorage) GetBlockByHash

func (m *MockBlockStorage) GetBlockByHash(arg0 context.Context, arg1 uint32, arg2 uint64, arg3 string) (*chainstorage.BlockMetadata, error)

GetBlockByHash mocks base method.

func (*MockBlockStorage) GetBlockByHeight

func (m *MockBlockStorage) GetBlockByHeight(arg0 context.Context, arg1 uint32, arg2 uint64) (*chainstorage.BlockMetadata, error)

GetBlockByHeight mocks base method.

func (*MockBlockStorage) GetBlocksByHeightRange

func (m *MockBlockStorage) GetBlocksByHeightRange(arg0 context.Context, arg1 uint32, arg2, arg3 uint64) ([]*chainstorage.BlockMetadata, error)

GetBlocksByHeightRange mocks base method.

func (*MockBlockStorage) GetBlocksByHeights

func (m *MockBlockStorage) GetBlocksByHeights(arg0 context.Context, arg1 uint32, arg2 []uint64) ([]*chainstorage.BlockMetadata, error)

GetBlocksByHeights mocks base method.

func (*MockBlockStorage) GetLatestBlock

func (m *MockBlockStorage) GetLatestBlock(arg0 context.Context, arg1 uint32) (*chainstorage.BlockMetadata, error)

GetLatestBlock mocks base method.

func (*MockBlockStorage) PersistBlockMetas

func (m *MockBlockStorage) PersistBlockMetas(arg0 context.Context, arg1 bool, arg2 []*chainstorage.BlockMetadata, arg3 *chainstorage.BlockMetadata) error

PersistBlockMetas mocks base method.

type MockBlockStorageMockRecorder

type MockBlockStorageMockRecorder struct {
	// contains filtered or unexported fields
}

MockBlockStorageMockRecorder is the mock recorder for MockBlockStorage.

func (*MockBlockStorageMockRecorder) GetBlockByHash

func (mr *MockBlockStorageMockRecorder) GetBlockByHash(arg0, arg1, arg2, arg3 any) *gomock.Call

GetBlockByHash indicates an expected call of GetBlockByHash.

func (*MockBlockStorageMockRecorder) GetBlockByHeight

func (mr *MockBlockStorageMockRecorder) GetBlockByHeight(arg0, arg1, arg2 any) *gomock.Call

GetBlockByHeight indicates an expected call of GetBlockByHeight.

func (*MockBlockStorageMockRecorder) GetBlocksByHeightRange

func (mr *MockBlockStorageMockRecorder) GetBlocksByHeightRange(arg0, arg1, arg2, arg3 any) *gomock.Call

GetBlocksByHeightRange indicates an expected call of GetBlocksByHeightRange.

func (*MockBlockStorageMockRecorder) GetBlocksByHeights

func (mr *MockBlockStorageMockRecorder) GetBlocksByHeights(arg0, arg1, arg2 any) *gomock.Call

GetBlocksByHeights indicates an expected call of GetBlocksByHeights.

func (*MockBlockStorageMockRecorder) GetLatestBlock

func (mr *MockBlockStorageMockRecorder) GetLatestBlock(arg0, arg1 any) *gomock.Call

GetLatestBlock indicates an expected call of GetLatestBlock.

func (*MockBlockStorageMockRecorder) PersistBlockMetas

func (mr *MockBlockStorageMockRecorder) PersistBlockMetas(arg0, arg1, arg2, arg3 any) *gomock.Call

PersistBlockMetas indicates an expected call of PersistBlockMetas.

type MockEventStorage

type MockEventStorage struct {
	// contains filtered or unexported fields
}

MockEventStorage is a mock of EventStorage interface.

func NewMockEventStorage

func NewMockEventStorage(ctrl *gomock.Controller) *MockEventStorage

NewMockEventStorage creates a new mock instance.

func (*MockEventStorage) AddEventEntries

func (m *MockEventStorage) AddEventEntries(arg0 context.Context, arg1 uint32, arg2 []*model.EventEntry) error

AddEventEntries mocks base method.

func (*MockEventStorage) AddEvents

func (m *MockEventStorage) AddEvents(arg0 context.Context, arg1 uint32, arg2 []*model.BlockEvent) error

AddEvents mocks base method.

func (*MockEventStorage) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEventStorage) GetEventByEventId

func (m *MockEventStorage) GetEventByEventId(arg0 context.Context, arg1 uint32, arg2 int64) (*model.EventEntry, error)

GetEventByEventId mocks base method.

func (*MockEventStorage) GetEventsAfterEventId

func (m *MockEventStorage) GetEventsAfterEventId(arg0 context.Context, arg1 uint32, arg2 int64, arg3 uint64) ([]*model.EventEntry, error)

GetEventsAfterEventId mocks base method.

func (*MockEventStorage) GetEventsByBlockHeight

func (m *MockEventStorage) GetEventsByBlockHeight(arg0 context.Context, arg1 uint32, arg2 uint64) ([]*model.EventEntry, error)

GetEventsByBlockHeight mocks base method.

func (*MockEventStorage) GetEventsByEventIdRange

func (m *MockEventStorage) GetEventsByEventIdRange(arg0 context.Context, arg1 uint32, arg2, arg3 int64) ([]*model.EventEntry, error)

GetEventsByEventIdRange mocks base method.

func (*MockEventStorage) GetFirstEventIdByBlockHeight

func (m *MockEventStorage) GetFirstEventIdByBlockHeight(arg0 context.Context, arg1 uint32, arg2 uint64) (int64, error)

GetFirstEventIdByBlockHeight mocks base method.

func (*MockEventStorage) GetMaxEventId

func (m *MockEventStorage) GetMaxEventId(arg0 context.Context, arg1 uint32) (int64, error)

GetMaxEventId mocks base method.

func (*MockEventStorage) SetMaxEventId

func (m *MockEventStorage) SetMaxEventId(arg0 context.Context, arg1 uint32, arg2 int64) error

SetMaxEventId mocks base method.

type MockEventStorageMockRecorder

type MockEventStorageMockRecorder struct {
	// contains filtered or unexported fields
}

MockEventStorageMockRecorder is the mock recorder for MockEventStorage.

func (*MockEventStorageMockRecorder) AddEventEntries

func (mr *MockEventStorageMockRecorder) AddEventEntries(arg0, arg1, arg2 any) *gomock.Call

AddEventEntries indicates an expected call of AddEventEntries.

func (*MockEventStorageMockRecorder) AddEvents

func (mr *MockEventStorageMockRecorder) AddEvents(arg0, arg1, arg2 any) *gomock.Call

AddEvents indicates an expected call of AddEvents.

func (*MockEventStorageMockRecorder) GetEventByEventId

func (mr *MockEventStorageMockRecorder) GetEventByEventId(arg0, arg1, arg2 any) *gomock.Call

GetEventByEventId indicates an expected call of GetEventByEventId.

func (*MockEventStorageMockRecorder) GetEventsAfterEventId

func (mr *MockEventStorageMockRecorder) GetEventsAfterEventId(arg0, arg1, arg2, arg3 any) *gomock.Call

GetEventsAfterEventId indicates an expected call of GetEventsAfterEventId.

func (*MockEventStorageMockRecorder) GetEventsByBlockHeight

func (mr *MockEventStorageMockRecorder) GetEventsByBlockHeight(arg0, arg1, arg2 any) *gomock.Call

GetEventsByBlockHeight indicates an expected call of GetEventsByBlockHeight.

func (*MockEventStorageMockRecorder) GetEventsByEventIdRange

func (mr *MockEventStorageMockRecorder) GetEventsByEventIdRange(arg0, arg1, arg2, arg3 any) *gomock.Call

GetEventsByEventIdRange indicates an expected call of GetEventsByEventIdRange.

func (*MockEventStorageMockRecorder) GetFirstEventIdByBlockHeight

func (mr *MockEventStorageMockRecorder) GetFirstEventIdByBlockHeight(arg0, arg1, arg2 any) *gomock.Call

GetFirstEventIdByBlockHeight indicates an expected call of GetFirstEventIdByBlockHeight.

func (*MockEventStorageMockRecorder) GetMaxEventId

func (mr *MockEventStorageMockRecorder) GetMaxEventId(arg0, arg1 any) *gomock.Call

GetMaxEventId indicates an expected call of GetMaxEventId.

func (*MockEventStorageMockRecorder) SetMaxEventId

func (mr *MockEventStorageMockRecorder) SetMaxEventId(arg0, arg1, arg2 any) *gomock.Call

SetMaxEventId indicates an expected call of SetMaxEventId.

type MockMetaStorage

type MockMetaStorage struct {
	// contains filtered or unexported fields
}

MockMetaStorage is a mock of MetaStorage interface.

func NewMockMetaStorage

func NewMockMetaStorage(ctrl *gomock.Controller) *MockMetaStorage

NewMockMetaStorage creates a new mock instance.

func (*MockMetaStorage) AddEventEntries

func (m *MockMetaStorage) AddEventEntries(arg0 context.Context, arg1 uint32, arg2 []*model.EventEntry) error

AddEventEntries mocks base method.

func (*MockMetaStorage) AddEvents

func (m *MockMetaStorage) AddEvents(arg0 context.Context, arg1 uint32, arg2 []*model.BlockEvent) error

AddEvents mocks base method.

func (*MockMetaStorage) AddTransactions

func (m *MockMetaStorage) AddTransactions(arg0 context.Context, arg1 []*model.Transaction, arg2 int) error

AddTransactions mocks base method.

func (*MockMetaStorage) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMetaStorage) GetBlockByHash

func (m *MockMetaStorage) GetBlockByHash(arg0 context.Context, arg1 uint32, arg2 uint64, arg3 string) (*chainstorage.BlockMetadata, error)

GetBlockByHash mocks base method.

func (*MockMetaStorage) GetBlockByHeight

func (m *MockMetaStorage) GetBlockByHeight(arg0 context.Context, arg1 uint32, arg2 uint64) (*chainstorage.BlockMetadata, error)

GetBlockByHeight mocks base method.

func (*MockMetaStorage) GetBlocksByHeightRange

func (m *MockMetaStorage) GetBlocksByHeightRange(arg0 context.Context, arg1 uint32, arg2, arg3 uint64) ([]*chainstorage.BlockMetadata, error)

GetBlocksByHeightRange mocks base method.

func (*MockMetaStorage) GetBlocksByHeights

func (m *MockMetaStorage) GetBlocksByHeights(arg0 context.Context, arg1 uint32, arg2 []uint64) ([]*chainstorage.BlockMetadata, error)

GetBlocksByHeights mocks base method.

func (*MockMetaStorage) GetEventByEventId

func (m *MockMetaStorage) GetEventByEventId(arg0 context.Context, arg1 uint32, arg2 int64) (*model.EventEntry, error)

GetEventByEventId mocks base method.

func (*MockMetaStorage) GetEventsAfterEventId

func (m *MockMetaStorage) GetEventsAfterEventId(arg0 context.Context, arg1 uint32, arg2 int64, arg3 uint64) ([]*model.EventEntry, error)

GetEventsAfterEventId mocks base method.

func (*MockMetaStorage) GetEventsByBlockHeight

func (m *MockMetaStorage) GetEventsByBlockHeight(arg0 context.Context, arg1 uint32, arg2 uint64) ([]*model.EventEntry, error)

GetEventsByBlockHeight mocks base method.

func (*MockMetaStorage) GetEventsByEventIdRange

func (m *MockMetaStorage) GetEventsByEventIdRange(arg0 context.Context, arg1 uint32, arg2, arg3 int64) ([]*model.EventEntry, error)

GetEventsByEventIdRange mocks base method.

func (*MockMetaStorage) GetFirstEventIdByBlockHeight

func (m *MockMetaStorage) GetFirstEventIdByBlockHeight(arg0 context.Context, arg1 uint32, arg2 uint64) (int64, error)

GetFirstEventIdByBlockHeight mocks base method.

func (*MockMetaStorage) GetLatestBlock

func (m *MockMetaStorage) GetLatestBlock(arg0 context.Context, arg1 uint32) (*chainstorage.BlockMetadata, error)

GetLatestBlock mocks base method.

func (*MockMetaStorage) GetMaxEventId

func (m *MockMetaStorage) GetMaxEventId(arg0 context.Context, arg1 uint32) (int64, error)

GetMaxEventId mocks base method.

func (*MockMetaStorage) GetTransaction

func (m *MockMetaStorage) GetTransaction(arg0 context.Context, arg1 uint32, arg2 string) ([]*model.Transaction, error)

GetTransaction mocks base method.

func (*MockMetaStorage) PersistBlockMetas

func (m *MockMetaStorage) PersistBlockMetas(arg0 context.Context, arg1 bool, arg2 []*chainstorage.BlockMetadata, arg3 *chainstorage.BlockMetadata) error

PersistBlockMetas mocks base method.

func (*MockMetaStorage) SetMaxEventId

func (m *MockMetaStorage) SetMaxEventId(arg0 context.Context, arg1 uint32, arg2 int64) error

SetMaxEventId mocks base method.

type MockMetaStorageMockRecorder

type MockMetaStorageMockRecorder struct {
	// contains filtered or unexported fields
}

MockMetaStorageMockRecorder is the mock recorder for MockMetaStorage.

func (*MockMetaStorageMockRecorder) AddEventEntries

func (mr *MockMetaStorageMockRecorder) AddEventEntries(arg0, arg1, arg2 any) *gomock.Call

AddEventEntries indicates an expected call of AddEventEntries.

func (*MockMetaStorageMockRecorder) AddEvents

func (mr *MockMetaStorageMockRecorder) AddEvents(arg0, arg1, arg2 any) *gomock.Call

AddEvents indicates an expected call of AddEvents.

func (*MockMetaStorageMockRecorder) AddTransactions

func (mr *MockMetaStorageMockRecorder) AddTransactions(arg0, arg1, arg2 any) *gomock.Call

AddTransactions indicates an expected call of AddTransactions.

func (*MockMetaStorageMockRecorder) GetBlockByHash

func (mr *MockMetaStorageMockRecorder) GetBlockByHash(arg0, arg1, arg2, arg3 any) *gomock.Call

GetBlockByHash indicates an expected call of GetBlockByHash.

func (*MockMetaStorageMockRecorder) GetBlockByHeight

func (mr *MockMetaStorageMockRecorder) GetBlockByHeight(arg0, arg1, arg2 any) *gomock.Call

GetBlockByHeight indicates an expected call of GetBlockByHeight.

func (*MockMetaStorageMockRecorder) GetBlocksByHeightRange

func (mr *MockMetaStorageMockRecorder) GetBlocksByHeightRange(arg0, arg1, arg2, arg3 any) *gomock.Call

GetBlocksByHeightRange indicates an expected call of GetBlocksByHeightRange.

func (*MockMetaStorageMockRecorder) GetBlocksByHeights

func (mr *MockMetaStorageMockRecorder) GetBlocksByHeights(arg0, arg1, arg2 any) *gomock.Call

GetBlocksByHeights indicates an expected call of GetBlocksByHeights.

func (*MockMetaStorageMockRecorder) GetEventByEventId

func (mr *MockMetaStorageMockRecorder) GetEventByEventId(arg0, arg1, arg2 any) *gomock.Call

GetEventByEventId indicates an expected call of GetEventByEventId.

func (*MockMetaStorageMockRecorder) GetEventsAfterEventId

func (mr *MockMetaStorageMockRecorder) GetEventsAfterEventId(arg0, arg1, arg2, arg3 any) *gomock.Call

GetEventsAfterEventId indicates an expected call of GetEventsAfterEventId.

func (*MockMetaStorageMockRecorder) GetEventsByBlockHeight

func (mr *MockMetaStorageMockRecorder) GetEventsByBlockHeight(arg0, arg1, arg2 any) *gomock.Call

GetEventsByBlockHeight indicates an expected call of GetEventsByBlockHeight.

func (*MockMetaStorageMockRecorder) GetEventsByEventIdRange

func (mr *MockMetaStorageMockRecorder) GetEventsByEventIdRange(arg0, arg1, arg2, arg3 any) *gomock.Call

GetEventsByEventIdRange indicates an expected call of GetEventsByEventIdRange.

func (*MockMetaStorageMockRecorder) GetFirstEventIdByBlockHeight

func (mr *MockMetaStorageMockRecorder) GetFirstEventIdByBlockHeight(arg0, arg1, arg2 any) *gomock.Call

GetFirstEventIdByBlockHeight indicates an expected call of GetFirstEventIdByBlockHeight.

func (*MockMetaStorageMockRecorder) GetLatestBlock

func (mr *MockMetaStorageMockRecorder) GetLatestBlock(arg0, arg1 any) *gomock.Call

GetLatestBlock indicates an expected call of GetLatestBlock.

func (*MockMetaStorageMockRecorder) GetMaxEventId

func (mr *MockMetaStorageMockRecorder) GetMaxEventId(arg0, arg1 any) *gomock.Call

GetMaxEventId indicates an expected call of GetMaxEventId.

func (*MockMetaStorageMockRecorder) GetTransaction

func (mr *MockMetaStorageMockRecorder) GetTransaction(arg0, arg1, arg2 any) *gomock.Call

GetTransaction indicates an expected call of GetTransaction.

func (*MockMetaStorageMockRecorder) PersistBlockMetas

func (mr *MockMetaStorageMockRecorder) PersistBlockMetas(arg0, arg1, arg2, arg3 any) *gomock.Call

PersistBlockMetas indicates an expected call of PersistBlockMetas.

func (*MockMetaStorageMockRecorder) SetMaxEventId

func (mr *MockMetaStorageMockRecorder) SetMaxEventId(arg0, arg1, arg2 any) *gomock.Call

SetMaxEventId indicates an expected call of SetMaxEventId.

type MockTransactionStorage

type MockTransactionStorage struct {
	// contains filtered or unexported fields
}

MockTransactionStorage is a mock of TransactionStorage interface.

func NewMockTransactionStorage

func NewMockTransactionStorage(ctrl *gomock.Controller) *MockTransactionStorage

NewMockTransactionStorage creates a new mock instance.

func (*MockTransactionStorage) AddTransactions

func (m *MockTransactionStorage) AddTransactions(arg0 context.Context, arg1 []*model.Transaction, arg2 int) error

AddTransactions mocks base method.

func (*MockTransactionStorage) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTransactionStorage) GetTransaction

func (m *MockTransactionStorage) GetTransaction(arg0 context.Context, arg1 uint32, arg2 string) ([]*model.Transaction, error)

GetTransaction mocks base method.

type MockTransactionStorageMockRecorder

type MockTransactionStorageMockRecorder struct {
	// contains filtered or unexported fields
}

MockTransactionStorageMockRecorder is the mock recorder for MockTransactionStorage.

func (*MockTransactionStorageMockRecorder) AddTransactions

func (mr *MockTransactionStorageMockRecorder) AddTransactions(arg0, arg1, arg2 any) *gomock.Call

AddTransactions indicates an expected call of AddTransactions.

func (*MockTransactionStorageMockRecorder) GetTransaction

func (mr *MockTransactionStorageMockRecorder) GetTransaction(arg0, arg1, arg2 any) *gomock.Call

GetTransaction indicates an expected call of GetTransaction.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL