mock

package
v0.102.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDriver

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

MockDriver is a mock of Driver interface.

func NewMockDriver

func NewMockDriver(ctrl *gomock.Controller) *MockDriver

NewMockDriver creates a new mock instance.

func (*MockDriver) EXPECT

func (m *MockDriver) EXPECT() *MockDriverMockRecorder

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

func (*MockDriver) Open

func (m *MockDriver) Open(ctx context.Context, params params.Config) (kv.Store, error)

Open mocks base method.

type MockDriverMockRecorder

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

MockDriverMockRecorder is the mock recorder for MockDriver.

func (*MockDriverMockRecorder) Open

func (mr *MockDriverMockRecorder) Open(ctx, params interface{}) *gomock.Call

Open indicates an expected call of Open.

type MockEntriesIterator

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

MockEntriesIterator is a mock of EntriesIterator interface.

func NewMockEntriesIterator

func NewMockEntriesIterator(ctrl *gomock.Controller) *MockEntriesIterator

NewMockEntriesIterator creates a new mock instance.

func (*MockEntriesIterator) Close

func (m *MockEntriesIterator) Close()

Close mocks base method.

func (*MockEntriesIterator) EXPECT

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

func (*MockEntriesIterator) Entry

func (m *MockEntriesIterator) Entry() *kv.Entry

Entry mocks base method.

func (*MockEntriesIterator) Err

func (m *MockEntriesIterator) Err() error

Err mocks base method.

func (*MockEntriesIterator) Next

func (m *MockEntriesIterator) Next() bool

Next mocks base method.

type MockEntriesIteratorMockRecorder

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

MockEntriesIteratorMockRecorder is the mock recorder for MockEntriesIterator.

func (*MockEntriesIteratorMockRecorder) Close

Close indicates an expected call of Close.

func (*MockEntriesIteratorMockRecorder) Entry

Entry indicates an expected call of Entry.

func (*MockEntriesIteratorMockRecorder) Err

Err indicates an expected call of Err.

func (*MockEntriesIteratorMockRecorder) Next

Next indicates an expected call of Next.

type MockPredicate

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

MockPredicate is a mock of Predicate interface.

func NewMockPredicate

func NewMockPredicate(ctrl *gomock.Controller) *MockPredicate

NewMockPredicate creates a new mock instance.

func (*MockPredicate) EXPECT

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

type MockPredicateMockRecorder

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

MockPredicateMockRecorder is the mock recorder for MockPredicate.

type MockStore

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

MockStore is a mock of Store interface.

func NewMockStore

func NewMockStore(ctrl *gomock.Controller) *MockStore

NewMockStore creates a new mock instance.

func (*MockStore) Close

func (m *MockStore) Close()

Close mocks base method.

func (*MockStore) Delete

func (m *MockStore) Delete(ctx context.Context, partitionKey, key []byte) error

Delete mocks base method.

func (*MockStore) EXPECT

func (m *MockStore) EXPECT() *MockStoreMockRecorder

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

func (*MockStore) Get

func (m *MockStore) Get(ctx context.Context, partitionKey, key []byte) (*kv.ValueWithPredicate, error)

Get mocks base method.

func (*MockStore) Scan

func (m *MockStore) Scan(ctx context.Context, partitionKey []byte, options kv.ScanOptions) (kv.EntriesIterator, error)

Scan mocks base method.

func (*MockStore) Set

func (m *MockStore) Set(ctx context.Context, partitionKey, key, value []byte) error

Set mocks base method.

func (*MockStore) SetIf

func (m *MockStore) SetIf(ctx context.Context, partitionKey, key, value []byte, valuePredicate kv.Predicate) error

SetIf mocks base method.

type MockStoreMockRecorder

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

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) Close

func (mr *MockStoreMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockStoreMockRecorder) Delete

func (mr *MockStoreMockRecorder) Delete(ctx, partitionKey, key interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockStoreMockRecorder) Get

func (mr *MockStoreMockRecorder) Get(ctx, partitionKey, key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockStoreMockRecorder) Scan

func (mr *MockStoreMockRecorder) Scan(ctx, partitionKey, options interface{}) *gomock.Call

Scan indicates an expected call of Scan.

func (*MockStoreMockRecorder) Set

func (mr *MockStoreMockRecorder) Set(ctx, partitionKey, key, value interface{}) *gomock.Call

Set indicates an expected call of Set.

func (*MockStoreMockRecorder) SetIf

func (mr *MockStoreMockRecorder) SetIf(ctx, partitionKey, key, value, valuePredicate interface{}) *gomock.Call

SetIf indicates an expected call of SetIf.

Jump to

Keyboard shortcuts

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