mock

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 6 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCacheFactory

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

MockCacheFactory is a mock of CacheFactory interface.

func NewMockCacheFactory

func NewMockCacheFactory(ctrl *gomock.Controller) *MockCacheFactory

NewMockCacheFactory creates a new mock instance.

func (*MockCacheFactory) Create

Create mocks base method.

func (*MockCacheFactory) EXPECT

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

type MockCacheFactoryMockRecorder

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

MockCacheFactoryMockRecorder is the mock recorder for MockCacheFactory.

func (*MockCacheFactoryMockRecorder) Create

Create indicates an expected call of Create.

type MockCacheInterface

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

MockCacheInterface is a mock of CacheInterface interface.

func NewMockCacheInterface

func NewMockCacheInterface(ctrl *gomock.Controller) *MockCacheInterface

NewMockCacheInterface creates a new mock instance.

func (*MockCacheInterface) Clear

func (m *MockCacheInterface) Clear()

Clear mocks base method.

func (*MockCacheInterface) Del

func (m *MockCacheInterface) Del(key string) bool

Del mocks base method.

func (*MockCacheInterface) EXPECT

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

func (*MockCacheInterface) EntryCount

func (m *MockCacheInterface) EntryCount() int64

EntryCount mocks base method.

func (*MockCacheInterface) Get

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

Get mocks base method.

func (*MockCacheInterface) Range

func (m *MockCacheInterface) Range(f func(interface{}, interface{}) bool)

Range mocks base method.

func (*MockCacheInterface) Set

func (m *MockCacheInterface) Set(key string, value interface{}, expireSeconds int) error

Set mocks base method.

type MockCacheInterfaceMockRecorder

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

MockCacheInterfaceMockRecorder is the mock recorder for MockCacheInterface.

func (*MockCacheInterfaceMockRecorder) Clear

Clear indicates an expected call of Clear.

func (*MockCacheInterfaceMockRecorder) Del

func (mr *MockCacheInterfaceMockRecorder) Del(key interface{}) *gomock.Call

Del indicates an expected call of Del.

func (*MockCacheInterfaceMockRecorder) EntryCount

func (mr *MockCacheInterfaceMockRecorder) EntryCount() *gomock.Call

EntryCount indicates an expected call of EntryCount.

func (*MockCacheInterfaceMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockCacheInterfaceMockRecorder) Range

func (mr *MockCacheInterfaceMockRecorder) Range(f interface{}) *gomock.Call

Range indicates an expected call of Range.

func (*MockCacheInterfaceMockRecorder) Set

func (mr *MockCacheInterfaceMockRecorder) Set(key, value, expireSeconds interface{}) *gomock.Call

Set indicates an expected call of Set.

type MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) AddChangeListener

func (m *MockClient) AddChangeListener(listener storage.ChangeListener)

AddChangeListener mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) GetApolloConfigCache

func (m *MockClient) GetApolloConfigCache() agcache.CacheInterface

GetApolloConfigCache mocks base method.

func (*MockClient) GetBoolValue

func (m *MockClient) GetBoolValue(key string, defaultValue bool) bool

GetBoolValue mocks base method.

func (*MockClient) GetChangeListeners

func (m *MockClient) GetChangeListeners() *list.List

GetChangeListeners mocks base method.

func (*MockClient) GetConfig

func (m *MockClient) GetConfig(namespace string) *storage.Config

GetConfig mocks base method.

func (*MockClient) GetConfigAndInit

func (m *MockClient) GetConfigAndInit(namespace string) *storage.Config

GetConfigAndInit mocks base method.

func (*MockClient) GetConfigCache

func (m *MockClient) GetConfigCache(namespace string) agcache.CacheInterface

GetConfigCache mocks base method.

func (*MockClient) GetDefaultConfigCache

func (m *MockClient) GetDefaultConfigCache() agcache.CacheInterface

GetDefaultConfigCache mocks base method.

func (*MockClient) GetFloatValue

func (m *MockClient) GetFloatValue(key string, defaultValue float64) float64

GetFloatValue mocks base method.

func (*MockClient) GetIntSliceValue

func (m *MockClient) GetIntSliceValue(key string, defaultValue []int) []int

GetIntSliceValue mocks base method.

func (*MockClient) GetIntValue

func (m *MockClient) GetIntValue(key string, defaultValue int) int

GetIntValue mocks base method.

func (*MockClient) GetStringSliceValue

func (m *MockClient) GetStringSliceValue(key string, defaultValue []string) []string

GetStringSliceValue mocks base method.

func (*MockClient) GetStringValue

func (m *MockClient) GetStringValue(key, defaultValue string) string

GetStringValue mocks base method.

func (*MockClient) GetValue

func (m *MockClient) GetValue(key string) string

GetValue mocks base method.

func (*MockClient) RemoveChangeListener

func (m *MockClient) RemoveChangeListener(listener storage.ChangeListener)

RemoveChangeListener mocks base method.

func (*MockClient) UseEventDispatch

func (m *MockClient) UseEventDispatch()

UseEventDispatch mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) AddChangeListener

func (mr *MockClientMockRecorder) AddChangeListener(listener interface{}) *gomock.Call

AddChangeListener indicates an expected call of AddChangeListener.

func (*MockClientMockRecorder) GetApolloConfigCache

func (mr *MockClientMockRecorder) GetApolloConfigCache() *gomock.Call

GetApolloConfigCache indicates an expected call of GetApolloConfigCache.

func (*MockClientMockRecorder) GetBoolValue

func (mr *MockClientMockRecorder) GetBoolValue(key, defaultValue interface{}) *gomock.Call

GetBoolValue indicates an expected call of GetBoolValue.

func (*MockClientMockRecorder) GetChangeListeners

func (mr *MockClientMockRecorder) GetChangeListeners() *gomock.Call

GetChangeListeners indicates an expected call of GetChangeListeners.

func (*MockClientMockRecorder) GetConfig

func (mr *MockClientMockRecorder) GetConfig(namespace interface{}) *gomock.Call

GetConfig indicates an expected call of GetConfig.

func (*MockClientMockRecorder) GetConfigAndInit

func (mr *MockClientMockRecorder) GetConfigAndInit(namespace interface{}) *gomock.Call

GetConfigAndInit indicates an expected call of GetConfigAndInit.

func (*MockClientMockRecorder) GetConfigCache

func (mr *MockClientMockRecorder) GetConfigCache(namespace interface{}) *gomock.Call

GetConfigCache indicates an expected call of GetConfigCache.

func (*MockClientMockRecorder) GetDefaultConfigCache

func (mr *MockClientMockRecorder) GetDefaultConfigCache() *gomock.Call

GetDefaultConfigCache indicates an expected call of GetDefaultConfigCache.

func (*MockClientMockRecorder) GetFloatValue

func (mr *MockClientMockRecorder) GetFloatValue(key, defaultValue interface{}) *gomock.Call

GetFloatValue indicates an expected call of GetFloatValue.

func (*MockClientMockRecorder) GetIntSliceValue

func (mr *MockClientMockRecorder) GetIntSliceValue(key, defaultValue interface{}) *gomock.Call

GetIntSliceValue indicates an expected call of GetIntSliceValue.

func (*MockClientMockRecorder) GetIntValue

func (mr *MockClientMockRecorder) GetIntValue(key, defaultValue interface{}) *gomock.Call

GetIntValue indicates an expected call of GetIntValue.

func (*MockClientMockRecorder) GetStringSliceValue

func (mr *MockClientMockRecorder) GetStringSliceValue(key, defaultValue interface{}) *gomock.Call

GetStringSliceValue indicates an expected call of GetStringSliceValue.

func (*MockClientMockRecorder) GetStringValue

func (mr *MockClientMockRecorder) GetStringValue(key, defaultValue interface{}) *gomock.Call

GetStringValue indicates an expected call of GetStringValue.

func (*MockClientMockRecorder) GetValue

func (mr *MockClientMockRecorder) GetValue(key interface{}) *gomock.Call

GetValue indicates an expected call of GetValue.

func (*MockClientMockRecorder) RemoveChangeListener

func (mr *MockClientMockRecorder) RemoveChangeListener(listener interface{}) *gomock.Call

RemoveChangeListener indicates an expected call of RemoveChangeListener.

func (*MockClientMockRecorder) UseEventDispatch

func (mr *MockClientMockRecorder) UseEventDispatch() *gomock.Call

UseEventDispatch indicates an expected call of UseEventDispatch.

type MockListener

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

MockListener is a mock of Listener interface.

func NewMockListener

func NewMockListener(ctrl *gomock.Controller) *MockListener

NewMockListener creates a new mock instance.

func (*MockListener) EXPECT

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

func (*MockListener) InitConfig

func (m *MockListener) InitConfig(client agollo.Client)

InitConfig mocks base method.

func (*MockListener) OnChange

func (m *MockListener) OnChange(event *storage.ChangeEvent)

OnChange mocks base method.

func (*MockListener) OnNewestChange

func (m *MockListener) OnNewestChange(event *storage.FullChangeEvent)

OnNewestChange mocks base method.

type MockListenerMockRecorder

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

MockListenerMockRecorder is the mock recorder for MockListener.

func (*MockListenerMockRecorder) InitConfig

func (mr *MockListenerMockRecorder) InitConfig(client interface{}) *gomock.Call

InitConfig indicates an expected call of InitConfig.

func (*MockListenerMockRecorder) OnChange

func (mr *MockListenerMockRecorder) OnChange(event interface{}) *gomock.Call

OnChange indicates an expected call of OnChange.

func (*MockListenerMockRecorder) OnNewestChange

func (mr *MockListenerMockRecorder) OnNewestChange(event interface{}) *gomock.Call

OnNewestChange indicates an expected call of OnNewestChange.

Jump to

Keyboard shortcuts

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