mockcompactor

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBlockQueueStore

type MockBlockQueueStore struct {
	mock.Mock
}

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

func (_m *MockBlockQueueStore) DeleteEntry(tx *bbolt.Tx, index uint64, id string) error

DeleteEntry provides a mock function with given fields: tx, index, id

func (*MockBlockQueueStore) EXPECT

func (*MockBlockQueueStore) ListEntries

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

type MockBlockQueueStore_CreateBuckets_Call struct {
	*mock.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 (*MockBlockQueueStore_CreateBuckets_Call) Run

func (*MockBlockQueueStore_CreateBuckets_Call) RunAndReturn

type MockBlockQueueStore_DeleteEntry_Call

type MockBlockQueueStore_DeleteEntry_Call struct {
	*mock.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 (*MockBlockQueueStore_DeleteEntry_Call) Run

func (*MockBlockQueueStore_DeleteEntry_Call) RunAndReturn

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

type MockBlockQueueStore_ListEntries_Call struct {
	*mock.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 (*MockBlockQueueStore_ListEntries_Call) Run

func (*MockBlockQueueStore_ListEntries_Call) RunAndReturn

type MockBlockQueueStore_StoreEntry_Call

type MockBlockQueueStore_StoreEntry_Call struct {
	*mock.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 (*MockBlockQueueStore_StoreEntry_Call) Run

func (*MockBlockQueueStore_StoreEntry_Call) RunAndReturn

type MockTombstones

type MockTombstones struct {
	mock.Mock
}

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 (*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

type MockTombstones_ListTombstones_Call struct {
	*mock.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 (*MockTombstones_ListTombstones_Call) Run

func (*MockTombstones_ListTombstones_Call) RunAndReturn

Jump to

Keyboard shortcuts

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