mockindex

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 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) EXPECT

func (_m *MockStore) EXPECT() *MockStore_Expecter

func (*MockStore) ListBlocks

func (_m *MockStore) ListBlocks(p index.PartitionKey, shard uint32, tenant string) []*metastorev1.BlockMeta

ListBlocks provides a mock function with given fields: p, shard, tenant

func (*MockStore) ListPartitions

func (_m *MockStore) ListPartitions() []index.PartitionKey

ListPartitions provides a mock function with given fields:

func (*MockStore) ListShards

func (_m *MockStore) ListShards(p index.PartitionKey) []uint32

ListShards provides a mock function with given fields: p

func (*MockStore) ListTenants

func (_m *MockStore) ListTenants(p index.PartitionKey, shard uint32) []string

ListTenants provides a mock function with given fields: p, shard

type MockStore_Expecter

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

func (*MockStore_Expecter) ListBlocks

func (_e *MockStore_Expecter) ListBlocks(p interface{}, shard interface{}, tenant interface{}) *MockStore_ListBlocks_Call

ListBlocks is a helper method to define mock.On call

  • p index.PartitionKey
  • shard uint32
  • tenant string

func (*MockStore_Expecter) ListPartitions

func (_e *MockStore_Expecter) ListPartitions() *MockStore_ListPartitions_Call

ListPartitions is a helper method to define mock.On call

func (*MockStore_Expecter) ListShards

func (_e *MockStore_Expecter) ListShards(p interface{}) *MockStore_ListShards_Call

ListShards is a helper method to define mock.On call

  • p index.PartitionKey

func (*MockStore_Expecter) ListTenants

func (_e *MockStore_Expecter) ListTenants(p interface{}, shard interface{}) *MockStore_ListTenants_Call

ListTenants is a helper method to define mock.On call

  • p index.PartitionKey
  • shard uint32

type MockStore_ListBlocks_Call

type MockStore_ListBlocks_Call struct {
	*mock.Call
}

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

func (*MockStore_ListBlocks_Call) Return

func (*MockStore_ListBlocks_Call) Run

func (*MockStore_ListBlocks_Call) RunAndReturn

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_ListShards_Call

type MockStore_ListShards_Call struct {
	*mock.Call
}

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

func (*MockStore_ListShards_Call) Return

func (*MockStore_ListShards_Call) Run

func (*MockStore_ListShards_Call) RunAndReturn

type MockStore_ListTenants_Call

type MockStore_ListTenants_Call struct {
	*mock.Call
}

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

func (*MockStore_ListTenants_Call) Return

func (*MockStore_ListTenants_Call) Run

func (*MockStore_ListTenants_Call) RunAndReturn

Jump to

Keyboard shortcuts

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