Documentation ¶
Index ¶
- type MockBlockQueueStore
- func (_m *MockBlockQueueStore) CreateBuckets(_a0 *bbolt.Tx) error
- func (_m *MockBlockQueueStore) DeleteEntry(tx *bbolt.Tx, index uint64, id string) error
- func (_m *MockBlockQueueStore) EXPECT() *MockBlockQueueStore_Expecter
- func (_m *MockBlockQueueStore) ListEntries(_a0 *bbolt.Tx) iter.Iterator[compaction.BlockEntry]
- func (_m *MockBlockQueueStore) StoreEntry(_a0 *bbolt.Tx, _a1 compaction.BlockEntry) error
- type MockBlockQueueStore_CreateBuckets_Call
- func (_c *MockBlockQueueStore_CreateBuckets_Call) Return(_a0 error) *MockBlockQueueStore_CreateBuckets_Call
- func (_c *MockBlockQueueStore_CreateBuckets_Call) Run(run func(_a0 *bbolt.Tx)) *MockBlockQueueStore_CreateBuckets_Call
- func (_c *MockBlockQueueStore_CreateBuckets_Call) RunAndReturn(run func(*bbolt.Tx) error) *MockBlockQueueStore_CreateBuckets_Call
- type MockBlockQueueStore_DeleteEntry_Call
- func (_c *MockBlockQueueStore_DeleteEntry_Call) Return(_a0 error) *MockBlockQueueStore_DeleteEntry_Call
- func (_c *MockBlockQueueStore_DeleteEntry_Call) Run(run func(tx *bbolt.Tx, index uint64, id string)) *MockBlockQueueStore_DeleteEntry_Call
- func (_c *MockBlockQueueStore_DeleteEntry_Call) RunAndReturn(run func(*bbolt.Tx, uint64, string) error) *MockBlockQueueStore_DeleteEntry_Call
- type MockBlockQueueStore_Expecter
- func (_e *MockBlockQueueStore_Expecter) CreateBuckets(_a0 interface{}) *MockBlockQueueStore_CreateBuckets_Call
- func (_e *MockBlockQueueStore_Expecter) DeleteEntry(tx interface{}, index interface{}, id interface{}) *MockBlockQueueStore_DeleteEntry_Call
- func (_e *MockBlockQueueStore_Expecter) ListEntries(_a0 interface{}) *MockBlockQueueStore_ListEntries_Call
- func (_e *MockBlockQueueStore_Expecter) StoreEntry(_a0 interface{}, _a1 interface{}) *MockBlockQueueStore_StoreEntry_Call
- type MockBlockQueueStore_ListEntries_Call
- func (_c *MockBlockQueueStore_ListEntries_Call) Return(_a0 iter.Iterator[compaction.BlockEntry]) *MockBlockQueueStore_ListEntries_Call
- func (_c *MockBlockQueueStore_ListEntries_Call) Run(run func(_a0 *bbolt.Tx)) *MockBlockQueueStore_ListEntries_Call
- func (_c *MockBlockQueueStore_ListEntries_Call) RunAndReturn(run func(*bbolt.Tx) iter.Iterator[compaction.BlockEntry]) *MockBlockQueueStore_ListEntries_Call
- type MockBlockQueueStore_StoreEntry_Call
- func (_c *MockBlockQueueStore_StoreEntry_Call) Return(_a0 error) *MockBlockQueueStore_StoreEntry_Call
- func (_c *MockBlockQueueStore_StoreEntry_Call) Run(run func(_a0 *bbolt.Tx, _a1 compaction.BlockEntry)) *MockBlockQueueStore_StoreEntry_Call
- func (_c *MockBlockQueueStore_StoreEntry_Call) RunAndReturn(run func(*bbolt.Tx, compaction.BlockEntry) error) *MockBlockQueueStore_StoreEntry_Call
- type MockTombstones
- type MockTombstones_Expecter
- type MockTombstones_ListTombstones_Call
- func (_c *MockTombstones_ListTombstones_Call) Return(_a0 iter.Iterator[*metastorev1.Tombstones]) *MockTombstones_ListTombstones_Call
- func (_c *MockTombstones_ListTombstones_Call) Run(run func(before time.Time)) *MockTombstones_ListTombstones_Call
- func (_c *MockTombstones_ListTombstones_Call) RunAndReturn(run func(time.Time) iter.Iterator[*metastorev1.Tombstones]) *MockTombstones_ListTombstones_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBlockQueueStore ¶
MockBlockQueueStore is an autogenerated mock type for the BlockQueueStore type
func NewMockBlockQueueStore ¶
func NewMockBlockQueueStore(t interface { mock.TestingT Cleanup(func()) }) *MockBlockQueueStore
NewMockBlockQueueStore creates a new instance of MockBlockQueueStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockBlockQueueStore) CreateBuckets ¶
func (_m *MockBlockQueueStore) CreateBuckets(_a0 *bbolt.Tx) error
CreateBuckets provides a mock function with given fields: _a0
func (*MockBlockQueueStore) DeleteEntry ¶
DeleteEntry provides a mock function with given fields: tx, index, id
func (*MockBlockQueueStore) EXPECT ¶
func (_m *MockBlockQueueStore) EXPECT() *MockBlockQueueStore_Expecter
func (*MockBlockQueueStore) ListEntries ¶
func (_m *MockBlockQueueStore) ListEntries(_a0 *bbolt.Tx) iter.Iterator[compaction.BlockEntry]
ListEntries provides a mock function with given fields: _a0
func (*MockBlockQueueStore) StoreEntry ¶
func (_m *MockBlockQueueStore) StoreEntry(_a0 *bbolt.Tx, _a1 compaction.BlockEntry) error
StoreEntry provides a mock function with given fields: _a0, _a1
type MockBlockQueueStore_CreateBuckets_Call ¶
MockBlockQueueStore_CreateBuckets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBuckets'
func (*MockBlockQueueStore_CreateBuckets_Call) Return ¶
func (_c *MockBlockQueueStore_CreateBuckets_Call) Return(_a0 error) *MockBlockQueueStore_CreateBuckets_Call
func (*MockBlockQueueStore_CreateBuckets_Call) Run ¶
func (_c *MockBlockQueueStore_CreateBuckets_Call) Run(run func(_a0 *bbolt.Tx)) *MockBlockQueueStore_CreateBuckets_Call
func (*MockBlockQueueStore_CreateBuckets_Call) RunAndReturn ¶
func (_c *MockBlockQueueStore_CreateBuckets_Call) RunAndReturn(run func(*bbolt.Tx) error) *MockBlockQueueStore_CreateBuckets_Call
type MockBlockQueueStore_DeleteEntry_Call ¶
MockBlockQueueStore_DeleteEntry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteEntry'
func (*MockBlockQueueStore_DeleteEntry_Call) Return ¶
func (_c *MockBlockQueueStore_DeleteEntry_Call) Return(_a0 error) *MockBlockQueueStore_DeleteEntry_Call
func (*MockBlockQueueStore_DeleteEntry_Call) Run ¶
func (_c *MockBlockQueueStore_DeleteEntry_Call) Run(run func(tx *bbolt.Tx, index uint64, id string)) *MockBlockQueueStore_DeleteEntry_Call
func (*MockBlockQueueStore_DeleteEntry_Call) RunAndReturn ¶
func (_c *MockBlockQueueStore_DeleteEntry_Call) RunAndReturn(run func(*bbolt.Tx, uint64, string) error) *MockBlockQueueStore_DeleteEntry_Call
type MockBlockQueueStore_Expecter ¶
type MockBlockQueueStore_Expecter struct {
// contains filtered or unexported fields
}
func (*MockBlockQueueStore_Expecter) CreateBuckets ¶
func (_e *MockBlockQueueStore_Expecter) CreateBuckets(_a0 interface{}) *MockBlockQueueStore_CreateBuckets_Call
CreateBuckets is a helper method to define mock.On call
- _a0 *bbolt.Tx
func (*MockBlockQueueStore_Expecter) DeleteEntry ¶
func (_e *MockBlockQueueStore_Expecter) DeleteEntry(tx interface{}, index interface{}, id interface{}) *MockBlockQueueStore_DeleteEntry_Call
DeleteEntry is a helper method to define mock.On call
- tx *bbolt.Tx
- index uint64
- id string
func (*MockBlockQueueStore_Expecter) ListEntries ¶
func (_e *MockBlockQueueStore_Expecter) ListEntries(_a0 interface{}) *MockBlockQueueStore_ListEntries_Call
ListEntries is a helper method to define mock.On call
- _a0 *bbolt.Tx
func (*MockBlockQueueStore_Expecter) StoreEntry ¶
func (_e *MockBlockQueueStore_Expecter) StoreEntry(_a0 interface{}, _a1 interface{}) *MockBlockQueueStore_StoreEntry_Call
StoreEntry is a helper method to define mock.On call
- _a0 *bbolt.Tx
- _a1 store.BlockEntry
type MockBlockQueueStore_ListEntries_Call ¶
MockBlockQueueStore_ListEntries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEntries'
func (*MockBlockQueueStore_ListEntries_Call) Return ¶
func (_c *MockBlockQueueStore_ListEntries_Call) Return(_a0 iter.Iterator[compaction.BlockEntry]) *MockBlockQueueStore_ListEntries_Call
func (*MockBlockQueueStore_ListEntries_Call) Run ¶
func (_c *MockBlockQueueStore_ListEntries_Call) Run(run func(_a0 *bbolt.Tx)) *MockBlockQueueStore_ListEntries_Call
func (*MockBlockQueueStore_ListEntries_Call) RunAndReturn ¶
func (_c *MockBlockQueueStore_ListEntries_Call) RunAndReturn(run func(*bbolt.Tx) iter.Iterator[compaction.BlockEntry]) *MockBlockQueueStore_ListEntries_Call
type MockBlockQueueStore_StoreEntry_Call ¶
MockBlockQueueStore_StoreEntry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreEntry'
func (*MockBlockQueueStore_StoreEntry_Call) Return ¶
func (_c *MockBlockQueueStore_StoreEntry_Call) Return(_a0 error) *MockBlockQueueStore_StoreEntry_Call
func (*MockBlockQueueStore_StoreEntry_Call) Run ¶
func (_c *MockBlockQueueStore_StoreEntry_Call) Run(run func(_a0 *bbolt.Tx, _a1 compaction.BlockEntry)) *MockBlockQueueStore_StoreEntry_Call
func (*MockBlockQueueStore_StoreEntry_Call) RunAndReturn ¶
func (_c *MockBlockQueueStore_StoreEntry_Call) RunAndReturn(run func(*bbolt.Tx, compaction.BlockEntry) error) *MockBlockQueueStore_StoreEntry_Call
type MockTombstones ¶
MockTombstones is an autogenerated mock type for the Tombstones type
func NewMockTombstones ¶
func NewMockTombstones(t interface { mock.TestingT Cleanup(func()) }) *MockTombstones
NewMockTombstones creates a new instance of MockTombstones. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockTombstones) EXPECT ¶
func (_m *MockTombstones) EXPECT() *MockTombstones_Expecter
func (*MockTombstones) ListTombstones ¶
func (_m *MockTombstones) ListTombstones(before time.Time) iter.Iterator[*metastorev1.Tombstones]
ListTombstones provides a mock function with given fields: before
type MockTombstones_Expecter ¶
type MockTombstones_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTombstones_Expecter) ListTombstones ¶
func (_e *MockTombstones_Expecter) ListTombstones(before interface{}) *MockTombstones_ListTombstones_Call
ListTombstones is a helper method to define mock.On call
- before time.Time
type MockTombstones_ListTombstones_Call ¶
MockTombstones_ListTombstones_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTombstones'
func (*MockTombstones_ListTombstones_Call) Return ¶
func (_c *MockTombstones_ListTombstones_Call) Return(_a0 iter.Iterator[*metastorev1.Tombstones]) *MockTombstones_ListTombstones_Call
func (*MockTombstones_ListTombstones_Call) Run ¶
func (_c *MockTombstones_ListTombstones_Call) Run(run func(before time.Time)) *MockTombstones_ListTombstones_Call
func (*MockTombstones_ListTombstones_Call) RunAndReturn ¶
func (_c *MockTombstones_ListTombstones_Call) RunAndReturn(run func(time.Time) iter.Iterator[*metastorev1.Tombstones]) *MockTombstones_ListTombstones_Call