mockindex

package
v0.0.104-dev Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStore

type MockStore struct {
	mock.Mock
}

MockStore is an autogenerated mock type for the Store type

func NewMockStore

func NewMockStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockStore

NewMockStore creates a new instance of MockStore. 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 (*MockStore) CreateBuckets added in v1.11.0

func (_m *MockStore) CreateBuckets(_a0 *bbolt.Tx) error

CreateBuckets provides a mock function with given fields: _a0

func (*MockStore) EXPECT

func (_m *MockStore) EXPECT() *MockStore_Expecter

func (*MockStore) ListPartitions

func (_m *MockStore) ListPartitions(_a0 *bbolt.Tx) ([]*store.Partition, error)

ListPartitions provides a mock function with given fields: _a0

func (*MockStore) LoadShard added in v1.13.3

func (_m *MockStore) LoadShard(_a0 *bbolt.Tx, _a1 store.PartitionKey, _a2 string, _a3 uint32) (*store.Shard, error)

LoadShard provides a mock function with given fields: _a0, _a1, _a2, _a3

type MockStore_CreateBuckets_Call added in v1.11.0

type MockStore_CreateBuckets_Call struct {
	*mock.Call
}

MockStore_CreateBuckets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBuckets'

func (*MockStore_CreateBuckets_Call) Return added in v1.11.0

func (*MockStore_CreateBuckets_Call) Run added in v1.11.0

func (*MockStore_CreateBuckets_Call) RunAndReturn added in v1.11.0

type MockStore_Expecter

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

func (*MockStore_Expecter) CreateBuckets added in v1.11.0

func (_e *MockStore_Expecter) CreateBuckets(_a0 interface{}) *MockStore_CreateBuckets_Call

CreateBuckets is a helper method to define mock.On call

  • _a0 *bbolt.Tx

func (*MockStore_Expecter) ListPartitions

func (_e *MockStore_Expecter) ListPartitions(_a0 interface{}) *MockStore_ListPartitions_Call

ListPartitions is a helper method to define mock.On call

  • _a0 *bbolt.Tx

func (*MockStore_Expecter) LoadShard added in v1.13.3

func (_e *MockStore_Expecter) LoadShard(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *MockStore_LoadShard_Call

LoadShard is a helper method to define mock.On call

  • _a0 *bbolt.Tx
  • _a1 store.PartitionKey
  • _a2 string
  • _a3 uint32

type MockStore_ListPartitions_Call

type MockStore_ListPartitions_Call struct {
	*mock.Call
}

MockStore_ListPartitions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPartitions'

func (*MockStore_ListPartitions_Call) Return

func (*MockStore_ListPartitions_Call) Run

func (*MockStore_ListPartitions_Call) RunAndReturn

type MockStore_LoadShard_Call added in v1.13.3

type MockStore_LoadShard_Call struct {
	*mock.Call
}

MockStore_LoadShard_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadShard'

func (*MockStore_LoadShard_Call) Return added in v1.13.3

func (*MockStore_LoadShard_Call) Run added in v1.13.3

func (_c *MockStore_LoadShard_Call) Run(run func(_a0 *bbolt.Tx, _a1 store.PartitionKey, _a2 string, _a3 uint32)) *MockStore_LoadShard_Call

func (*MockStore_LoadShard_Call) RunAndReturn added in v1.13.3

Jump to

Keyboard shortcuts

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