mock

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

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 MockCache

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

MockCache is a mock of Cache interface.

func NewMockCache

func NewMockCache(ctrl *gomock.Controller) *MockCache

NewMockCache creates a new mock instance.

func (*MockCache) Delete

func (m *MockCache) Delete(key interface{})

Delete mocks base method.

func (*MockCache) EXPECT

func (m *MockCache) EXPECT() *MockCacheMockRecorder

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

func (*MockCache) Get

func (m *MockCache) Get(key interface{}) (interface{}, error)

Get mocks base method.

func (*MockCache) Put

func (m *MockCache) Put(key, value interface{}, expiration time.Duration) error

Put mocks base method.

func (*MockCache) Scan

func (m *MockCache) Scan(keyPrefix string) ([]string, error)

Scan mocks base method.

type MockCacheMockRecorder

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

MockCacheMockRecorder is the mock recorder for MockCache.

func (*MockCacheMockRecorder) Delete

func (mr *MockCacheMockRecorder) Delete(key interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockCacheMockRecorder) Get

func (mr *MockCacheMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockCacheMockRecorder) Put

func (mr *MockCacheMockRecorder) Put(key, value, expiration interface{}) *gomock.Call

Put indicates an expected call of Put.

func (*MockCacheMockRecorder) Scan

func (mr *MockCacheMockRecorder) Scan(keyPrefix interface{}) *gomock.Call

Scan indicates an expected call of Scan.

type MockDeleter

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

MockDeleter is a mock of Deleter interface.

func NewMockDeleter

func NewMockDeleter(ctrl *gomock.Controller) *MockDeleter

NewMockDeleter creates a new mock instance.

func (*MockDeleter) Delete

func (m *MockDeleter) Delete(key interface{})

Delete mocks base method.

func (*MockDeleter) EXPECT

func (m *MockDeleter) EXPECT() *MockDeleterMockRecorder

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

type MockDeleterMockRecorder

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

MockDeleterMockRecorder is the mock recorder for MockDeleter.

func (*MockDeleterMockRecorder) Delete

func (mr *MockDeleterMockRecorder) Delete(key interface{}) *gomock.Call

Delete indicates an expected call of Delete.

type MockFeaturesCache

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

MockFeaturesCache is a mock of FeaturesCache interface.

func NewMockFeaturesCache

func NewMockFeaturesCache(ctrl *gomock.Controller) *MockFeaturesCache

NewMockFeaturesCache creates a new mock instance.

func (*MockFeaturesCache) Delete

func (m *MockFeaturesCache) Delete(id string)

Delete mocks base method.

func (*MockFeaturesCache) DeleteAll

func (m *MockFeaturesCache) DeleteAll() error

DeleteAll mocks base method.

func (*MockFeaturesCache) EXPECT

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

func (*MockFeaturesCache) Get

func (m *MockFeaturesCache) Get(id string) (*feature.Feature, error)

Get mocks base method.

func (*MockFeaturesCache) Put

func (m *MockFeaturesCache) Put(feature *feature.Feature) error

Put mocks base method.

type MockFeaturesCacheMockRecorder

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

MockFeaturesCacheMockRecorder is the mock recorder for MockFeaturesCache.

func (*MockFeaturesCacheMockRecorder) Delete

func (mr *MockFeaturesCacheMockRecorder) Delete(id interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockFeaturesCacheMockRecorder) DeleteAll

func (mr *MockFeaturesCacheMockRecorder) DeleteAll() *gomock.Call

DeleteAll indicates an expected call of DeleteAll.

func (*MockFeaturesCacheMockRecorder) Get

func (mr *MockFeaturesCacheMockRecorder) Get(id interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockFeaturesCacheMockRecorder) Put

func (mr *MockFeaturesCacheMockRecorder) Put(feature interface{}) *gomock.Call

Put indicates an expected call of Put.

type MockGetter

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

MockGetter is a mock of Getter interface.

func NewMockGetter

func NewMockGetter(ctrl *gomock.Controller) *MockGetter

NewMockGetter creates a new mock instance.

func (*MockGetter) EXPECT

func (m *MockGetter) EXPECT() *MockGetterMockRecorder

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

func (*MockGetter) Get

func (m *MockGetter) Get(key interface{}) (interface{}, error)

Get mocks base method.

type MockGetterMockRecorder

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

MockGetterMockRecorder is the mock recorder for MockGetter.

func (*MockGetterMockRecorder) Get

func (mr *MockGetterMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

type MockInMemoryCache

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

MockInMemoryCache is a mock of InMemoryCache interface.

func NewMockInMemoryCache

func NewMockInMemoryCache(ctrl *gomock.Controller) *MockInMemoryCache

NewMockInMemoryCache creates a new mock instance.

func (*MockInMemoryCache) Delete

func (m *MockInMemoryCache) Delete(key interface{})

Delete mocks base method.

func (*MockInMemoryCache) Destroy

func (m *MockInMemoryCache) Destroy()

Destroy mocks base method.

func (*MockInMemoryCache) EXPECT

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

func (*MockInMemoryCache) Get

func (m *MockInMemoryCache) Get(key interface{}) (interface{}, error)

Get mocks base method.

func (*MockInMemoryCache) Put

func (m *MockInMemoryCache) Put(key, value interface{}, expiration time.Duration) error

Put mocks base method.

func (*MockInMemoryCache) Scan

func (m *MockInMemoryCache) Scan(keyPrefix string) ([]string, error)

Scan mocks base method.

type MockInMemoryCacheMockRecorder

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

MockInMemoryCacheMockRecorder is the mock recorder for MockInMemoryCache.

func (*MockInMemoryCacheMockRecorder) Delete

func (mr *MockInMemoryCacheMockRecorder) Delete(key interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockInMemoryCacheMockRecorder) Destroy

func (mr *MockInMemoryCacheMockRecorder) Destroy() *gomock.Call

Destroy indicates an expected call of Destroy.

func (*MockInMemoryCacheMockRecorder) Get

func (mr *MockInMemoryCacheMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockInMemoryCacheMockRecorder) Put

func (mr *MockInMemoryCacheMockRecorder) Put(key, value, expiration interface{}) *gomock.Call

Put indicates an expected call of Put.

func (*MockInMemoryCacheMockRecorder) Scan

func (mr *MockInMemoryCacheMockRecorder) Scan(keyPrefix interface{}) *gomock.Call

Scan indicates an expected call of Scan.

type MockPutter

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

MockPutter is a mock of Putter interface.

func NewMockPutter

func NewMockPutter(ctrl *gomock.Controller) *MockPutter

NewMockPutter creates a new mock instance.

func (*MockPutter) EXPECT

func (m *MockPutter) EXPECT() *MockPutterMockRecorder

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

func (*MockPutter) Put

func (m *MockPutter) Put(key, value interface{}, expiration time.Duration) error

Put mocks base method.

type MockPutterMockRecorder

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

MockPutterMockRecorder is the mock recorder for MockPutter.

func (*MockPutterMockRecorder) Put

func (mr *MockPutterMockRecorder) Put(key, value, expiration interface{}) *gomock.Call

Put indicates an expected call of Put.

type MockScanner

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

MockScanner is a mock of Scanner interface.

func NewMockScanner

func NewMockScanner(ctrl *gomock.Controller) *MockScanner

NewMockScanner creates a new mock instance.

func (*MockScanner) EXPECT

func (m *MockScanner) EXPECT() *MockScannerMockRecorder

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

func (*MockScanner) Scan

func (m *MockScanner) Scan(keyPrefix string) ([]string, error)

Scan mocks base method.

type MockScannerMockRecorder

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

MockScannerMockRecorder is the mock recorder for MockScanner.

func (*MockScannerMockRecorder) Scan

func (mr *MockScannerMockRecorder) Scan(keyPrefix interface{}) *gomock.Call

Scan indicates an expected call of Scan.

type MockSegmentUsersCache

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

MockSegmentUsersCache is a mock of SegmentUsersCache interface.

func NewMockSegmentUsersCache

func NewMockSegmentUsersCache(ctrl *gomock.Controller) *MockSegmentUsersCache

NewMockSegmentUsersCache creates a new mock instance.

func (*MockSegmentUsersCache) Delete

func (m *MockSegmentUsersCache) Delete(id string)

Delete mocks base method.

func (*MockSegmentUsersCache) DeleteAll

func (m *MockSegmentUsersCache) DeleteAll() error

DeleteAll mocks base method.

func (*MockSegmentUsersCache) EXPECT

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

func (*MockSegmentUsersCache) Get

func (m *MockSegmentUsersCache) Get(segmentID string) (*feature.SegmentUsers, error)

Get mocks base method.

func (*MockSegmentUsersCache) GetSegmentIDs

func (m *MockSegmentUsersCache) GetSegmentIDs() ([]string, error)

GetSegmentIDs mocks base method.

func (*MockSegmentUsersCache) Put

func (m *MockSegmentUsersCache) Put(segmentUsers *feature.SegmentUsers) error

Put mocks base method.

type MockSegmentUsersCacheMockRecorder

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

MockSegmentUsersCacheMockRecorder is the mock recorder for MockSegmentUsersCache.

func (*MockSegmentUsersCacheMockRecorder) Delete

func (mr *MockSegmentUsersCacheMockRecorder) Delete(id interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockSegmentUsersCacheMockRecorder) DeleteAll

DeleteAll indicates an expected call of DeleteAll.

func (*MockSegmentUsersCacheMockRecorder) Get

func (mr *MockSegmentUsersCacheMockRecorder) Get(segmentID interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockSegmentUsersCacheMockRecorder) GetSegmentIDs

func (mr *MockSegmentUsersCacheMockRecorder) GetSegmentIDs() *gomock.Call

GetSegmentIDs indicates an expected call of GetSegmentIDs.

func (*MockSegmentUsersCacheMockRecorder) Put

func (mr *MockSegmentUsersCacheMockRecorder) Put(segmentUsers interface{}) *gomock.Call

Put indicates an expected call of Put.

Jump to

Keyboard shortcuts

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