mocks

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoRefresh

type AutoRefresh struct {
	mock.Mock
}

AutoRefresh is an autogenerated mock type for the AutoRefresh type

func NewAutoRefresh

func NewAutoRefresh(t interface {
	mock.TestingT
	Cleanup(func())
}) *AutoRefresh

NewAutoRefresh creates a new instance of AutoRefresh. 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 (*AutoRefresh) DeleteDelayed

func (_m *AutoRefresh) DeleteDelayed(id cache.ItemID) error

DeleteDelayed provides a mock function with given fields: id

func (*AutoRefresh) EXPECT

func (_m *AutoRefresh) EXPECT() *AutoRefresh_Expecter

func (*AutoRefresh) Get

func (_m *AutoRefresh) Get(id cache.ItemID) (cache.Item, error)

Get provides a mock function with given fields: id

func (*AutoRefresh) GetOrCreate

func (_m *AutoRefresh) GetOrCreate(id cache.ItemID, item cache.Item) (cache.Item, error)

GetOrCreate provides a mock function with given fields: id, item

func (*AutoRefresh) Start

func (_m *AutoRefresh) Start(ctx context.Context) error

Start provides a mock function with given fields: ctx

type AutoRefresh_DeleteDelayed_Call

type AutoRefresh_DeleteDelayed_Call struct {
	*mock.Call
}

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

func (*AutoRefresh_DeleteDelayed_Call) Return

func (*AutoRefresh_DeleteDelayed_Call) Run

func (*AutoRefresh_DeleteDelayed_Call) RunAndReturn

type AutoRefresh_Expecter

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

func (*AutoRefresh_Expecter) DeleteDelayed

func (_e *AutoRefresh_Expecter) DeleteDelayed(id interface{}) *AutoRefresh_DeleteDelayed_Call

DeleteDelayed is a helper method to define mock.On call

  • id cache.ItemID

func (*AutoRefresh_Expecter) Get

func (_e *AutoRefresh_Expecter) Get(id interface{}) *AutoRefresh_Get_Call

Get is a helper method to define mock.On call

  • id cache.ItemID

func (*AutoRefresh_Expecter) GetOrCreate

func (_e *AutoRefresh_Expecter) GetOrCreate(id interface{}, item interface{}) *AutoRefresh_GetOrCreate_Call

GetOrCreate is a helper method to define mock.On call

  • id cache.ItemID
  • item cache.Item

func (*AutoRefresh_Expecter) Start

func (_e *AutoRefresh_Expecter) Start(ctx interface{}) *AutoRefresh_Start_Call

Start is a helper method to define mock.On call

  • ctx context.Context

type AutoRefresh_GetOrCreate_Call

type AutoRefresh_GetOrCreate_Call struct {
	*mock.Call
}

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

func (*AutoRefresh_GetOrCreate_Call) Return

func (*AutoRefresh_GetOrCreate_Call) Run

func (*AutoRefresh_GetOrCreate_Call) RunAndReturn

type AutoRefresh_Get_Call

type AutoRefresh_Get_Call struct {
	*mock.Call
}

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

func (*AutoRefresh_Get_Call) Return

func (*AutoRefresh_Get_Call) Run

func (_c *AutoRefresh_Get_Call) Run(run func(id cache.ItemID)) *AutoRefresh_Get_Call

func (*AutoRefresh_Get_Call) RunAndReturn

func (_c *AutoRefresh_Get_Call) RunAndReturn(run func(cache.ItemID) (cache.Item, error)) *AutoRefresh_Get_Call

type AutoRefresh_Start_Call

type AutoRefresh_Start_Call struct {
	*mock.Call
}

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

func (*AutoRefresh_Start_Call) Return

func (*AutoRefresh_Start_Call) Run

func (*AutoRefresh_Start_Call) RunAndReturn

func (_c *AutoRefresh_Start_Call) RunAndReturn(run func(context.Context) error) *AutoRefresh_Start_Call

type CreateBatchesFunc

type CreateBatchesFunc struct {
	mock.Mock
}

CreateBatchesFunc is an autogenerated mock type for the CreateBatchesFunc type

func NewCreateBatchesFunc

func NewCreateBatchesFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *CreateBatchesFunc

NewCreateBatchesFunc creates a new instance of CreateBatchesFunc. 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 (*CreateBatchesFunc) EXPECT

func (*CreateBatchesFunc) Execute

func (_m *CreateBatchesFunc) Execute(ctx context.Context, snapshot []cache.ItemWrapper) ([]cache.Batch, error)

Execute provides a mock function with given fields: ctx, snapshot

type CreateBatchesFunc_Execute_Call

type CreateBatchesFunc_Execute_Call struct {
	*mock.Call
}

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

func (*CreateBatchesFunc_Execute_Call) Return

func (*CreateBatchesFunc_Execute_Call) Run

func (*CreateBatchesFunc_Execute_Call) RunAndReturn

type CreateBatchesFunc_Expecter

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

func (*CreateBatchesFunc_Expecter) Execute

func (_e *CreateBatchesFunc_Expecter) Execute(ctx interface{}, snapshot interface{}) *CreateBatchesFunc_Execute_Call

Execute is a helper method to define mock.On call

  • ctx context.Context
  • snapshot []cache.ItemWrapper

type Item

type Item struct {
	mock.Mock
}

Item is an autogenerated mock type for the Item type

func NewItem

func NewItem(t interface {
	mock.TestingT
	Cleanup(func())
}) *Item

NewItem creates a new instance of Item. 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 (*Item) EXPECT

func (_m *Item) EXPECT() *Item_Expecter

func (*Item) IsTerminal

func (_m *Item) IsTerminal() bool

IsTerminal provides a mock function with no fields

type ItemWrapper

type ItemWrapper struct {
	mock.Mock
}

ItemWrapper is an autogenerated mock type for the ItemWrapper type

func NewItemWrapper

func NewItemWrapper(t interface {
	mock.TestingT
	Cleanup(func())
}) *ItemWrapper

NewItemWrapper creates a new instance of ItemWrapper. 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 (*ItemWrapper) EXPECT

func (_m *ItemWrapper) EXPECT() *ItemWrapper_Expecter

func (*ItemWrapper) GetID

func (_m *ItemWrapper) GetID() cache.ItemID

GetID provides a mock function with no fields

func (*ItemWrapper) GetItem

func (_m *ItemWrapper) GetItem() cache.Item

GetItem provides a mock function with no fields

type ItemWrapper_Expecter

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

func (*ItemWrapper_Expecter) GetID

GetID is a helper method to define mock.On call

func (*ItemWrapper_Expecter) GetItem

GetItem is a helper method to define mock.On call

type ItemWrapper_GetID_Call

type ItemWrapper_GetID_Call struct {
	*mock.Call
}

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

func (*ItemWrapper_GetID_Call) Return

func (*ItemWrapper_GetID_Call) Run

func (_c *ItemWrapper_GetID_Call) Run(run func()) *ItemWrapper_GetID_Call

func (*ItemWrapper_GetID_Call) RunAndReturn

func (_c *ItemWrapper_GetID_Call) RunAndReturn(run func() cache.ItemID) *ItemWrapper_GetID_Call

type ItemWrapper_GetItem_Call

type ItemWrapper_GetItem_Call struct {
	*mock.Call
}

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

func (*ItemWrapper_GetItem_Call) Return

func (*ItemWrapper_GetItem_Call) Run

func (*ItemWrapper_GetItem_Call) RunAndReturn

func (_c *ItemWrapper_GetItem_Call) RunAndReturn(run func() cache.Item) *ItemWrapper_GetItem_Call

type Item_Expecter

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

func (*Item_Expecter) IsTerminal

func (_e *Item_Expecter) IsTerminal() *Item_IsTerminal_Call

IsTerminal is a helper method to define mock.On call

type Item_IsTerminal_Call

type Item_IsTerminal_Call struct {
	*mock.Call
}

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

func (*Item_IsTerminal_Call) Return

func (*Item_IsTerminal_Call) Run

func (_c *Item_IsTerminal_Call) Run(run func()) *Item_IsTerminal_Call

func (*Item_IsTerminal_Call) RunAndReturn

func (_c *Item_IsTerminal_Call) RunAndReturn(run func() bool) *Item_IsTerminal_Call

type Option

type Option struct {
	mock.Mock
}

Option is an autogenerated mock type for the Option type

func NewOption

func NewOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *Option

NewOption creates a new instance of Option. 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 (*Option) EXPECT

func (_m *Option) EXPECT() *Option_Expecter

func (*Option) Execute

func (_m *Option) Execute(_a0 *cache.Options)

Execute provides a mock function with given fields: _a0

type Option_Execute_Call

type Option_Execute_Call struct {
	*mock.Call
}

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

func (*Option_Execute_Call) Return

func (*Option_Execute_Call) Run

func (_c *Option_Execute_Call) Run(run func(_a0 *cache.Options)) *Option_Execute_Call

func (*Option_Execute_Call) RunAndReturn

func (_c *Option_Execute_Call) RunAndReturn(run func(*cache.Options)) *Option_Execute_Call

type Option_Expecter

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

func (*Option_Expecter) Execute

func (_e *Option_Expecter) Execute(_a0 interface{}) *Option_Execute_Call

Execute is a helper method to define mock.On call

  • _a0 *cache.Options

type SecretManager added in v2.0.1

type SecretManager struct {
	mock.Mock
}

SecretManager is an autogenerated mock type for the SecretManager type

func NewSecretManager added in v2.0.1

func NewSecretManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *SecretManager

NewSecretManager creates a new instance of SecretManager. 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 (*SecretManager) EXPECT added in v2.0.1

func (_m *SecretManager) EXPECT() *SecretManager_Expecter

func (*SecretManager) Get added in v2.0.1

func (_m *SecretManager) Get(ctx context.Context, key string) (string, error)

Get provides a mock function with given fields: ctx, key

type SecretManager_Expecter added in v2.0.1

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

func (*SecretManager_Expecter) Get added in v2.0.1

func (_e *SecretManager_Expecter) Get(ctx interface{}, key interface{}) *SecretManager_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • key string

type SecretManager_Get_Call added in v2.0.1

type SecretManager_Get_Call struct {
	*mock.Call
}

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

func (*SecretManager_Get_Call) Return added in v2.0.1

func (*SecretManager_Get_Call) Run added in v2.0.1

func (*SecretManager_Get_Call) RunAndReturn added in v2.0.1

type StringCache added in v2.0.1

type StringCache[T any] struct {
	mock.Mock
}

StringCache is an autogenerated mock type for the StringCache type

func NewStringCache added in v2.0.1

func NewStringCache[T any](t interface {
	mock.TestingT
	Cleanup(func())
}) *StringCache[T]

NewStringCache creates a new instance of StringCache. 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 (*StringCache[T]) Clear added in v2.0.1

func (_m *StringCache[T]) Clear(ctx context.Context) error

Clear provides a mock function with given fields: ctx

func (*StringCache[T]) Delete added in v2.0.1

func (_m *StringCache[T]) Delete(ctx context.Context, key any) error

Delete provides a mock function with given fields: ctx, key

func (*StringCache[T]) EXPECT added in v2.0.1

func (_m *StringCache[T]) EXPECT() *StringCache_Expecter[T]

func (*StringCache[T]) Get added in v2.0.1

func (_m *StringCache[T]) Get(ctx context.Context, key any) (string, error)

Get provides a mock function with given fields: ctx, key

func (*StringCache[T]) GetType added in v2.0.1

func (_m *StringCache[T]) GetType() string

GetType provides a mock function with no fields

func (*StringCache[T]) Invalidate added in v2.0.1

func (_m *StringCache[T]) Invalidate(ctx context.Context, options ...store.InvalidateOption) error

Invalidate provides a mock function with given fields: ctx, options

func (*StringCache[T]) Set added in v2.0.1

func (_m *StringCache[T]) Set(ctx context.Context, key any, object string, options ...store.Option) error

Set provides a mock function with given fields: ctx, key, object, options

type StringCache_Clear_Call added in v2.0.1

type StringCache_Clear_Call[T any] struct {
	*mock.Call
}

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

func (*StringCache_Clear_Call[T]) Return added in v2.0.1

func (_c *StringCache_Clear_Call[T]) Return(_a0 error) *StringCache_Clear_Call[T]

func (*StringCache_Clear_Call[T]) Run added in v2.0.1

func (_c *StringCache_Clear_Call[T]) Run(run func(ctx context.Context)) *StringCache_Clear_Call[T]

func (*StringCache_Clear_Call[T]) RunAndReturn added in v2.0.1

func (_c *StringCache_Clear_Call[T]) RunAndReturn(run func(context.Context) error) *StringCache_Clear_Call[T]

type StringCache_Delete_Call added in v2.0.1

type StringCache_Delete_Call[T any] struct {
	*mock.Call
}

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

func (*StringCache_Delete_Call[T]) Return added in v2.0.1

func (_c *StringCache_Delete_Call[T]) Return(_a0 error) *StringCache_Delete_Call[T]

func (*StringCache_Delete_Call[T]) Run added in v2.0.1

func (_c *StringCache_Delete_Call[T]) Run(run func(ctx context.Context, key any)) *StringCache_Delete_Call[T]

func (*StringCache_Delete_Call[T]) RunAndReturn added in v2.0.1

func (_c *StringCache_Delete_Call[T]) RunAndReturn(run func(context.Context, any) error) *StringCache_Delete_Call[T]

type StringCache_Expecter added in v2.0.1

type StringCache_Expecter[T any] struct {
	// contains filtered or unexported fields
}

func (*StringCache_Expecter[T]) Clear added in v2.0.1

func (_e *StringCache_Expecter[T]) Clear(ctx interface{}) *StringCache_Clear_Call[T]

Clear is a helper method to define mock.On call

  • ctx context.Context

func (*StringCache_Expecter[T]) Delete added in v2.0.1

func (_e *StringCache_Expecter[T]) Delete(ctx interface{}, key interface{}) *StringCache_Delete_Call[T]

Delete is a helper method to define mock.On call

  • ctx context.Context
  • key any

func (*StringCache_Expecter[T]) Get added in v2.0.1

func (_e *StringCache_Expecter[T]) Get(ctx interface{}, key interface{}) *StringCache_Get_Call[T]

Get is a helper method to define mock.On call

  • ctx context.Context
  • key any

func (*StringCache_Expecter[T]) GetType added in v2.0.1

func (_e *StringCache_Expecter[T]) GetType() *StringCache_GetType_Call[T]

GetType is a helper method to define mock.On call

func (*StringCache_Expecter[T]) Invalidate added in v2.0.1

func (_e *StringCache_Expecter[T]) Invalidate(ctx interface{}, options ...interface{}) *StringCache_Invalidate_Call[T]

Invalidate is a helper method to define mock.On call

  • ctx context.Context
  • options ...store.InvalidateOption

func (*StringCache_Expecter[T]) Set added in v2.0.1

func (_e *StringCache_Expecter[T]) Set(ctx interface{}, key interface{}, object interface{}, options ...interface{}) *StringCache_Set_Call[T]

Set is a helper method to define mock.On call

  • ctx context.Context
  • key any
  • object string
  • options ...store.Option

type StringCache_GetType_Call added in v2.0.1

type StringCache_GetType_Call[T any] struct {
	*mock.Call
}

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

func (*StringCache_GetType_Call[T]) Return added in v2.0.1

func (*StringCache_GetType_Call[T]) Run added in v2.0.1

func (_c *StringCache_GetType_Call[T]) Run(run func()) *StringCache_GetType_Call[T]

func (*StringCache_GetType_Call[T]) RunAndReturn added in v2.0.1

func (_c *StringCache_GetType_Call[T]) RunAndReturn(run func() string) *StringCache_GetType_Call[T]

type StringCache_Get_Call added in v2.0.1

type StringCache_Get_Call[T any] struct {
	*mock.Call
}

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

func (*StringCache_Get_Call[T]) Return added in v2.0.1

func (_c *StringCache_Get_Call[T]) Return(_a0 string, _a1 error) *StringCache_Get_Call[T]

func (*StringCache_Get_Call[T]) Run added in v2.0.1

func (_c *StringCache_Get_Call[T]) Run(run func(ctx context.Context, key any)) *StringCache_Get_Call[T]

func (*StringCache_Get_Call[T]) RunAndReturn added in v2.0.1

func (_c *StringCache_Get_Call[T]) RunAndReturn(run func(context.Context, any) (string, error)) *StringCache_Get_Call[T]

type StringCache_Invalidate_Call added in v2.0.1

type StringCache_Invalidate_Call[T any] struct {
	*mock.Call
}

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

func (*StringCache_Invalidate_Call[T]) Return added in v2.0.1

func (*StringCache_Invalidate_Call[T]) Run added in v2.0.1

func (*StringCache_Invalidate_Call[T]) RunAndReturn added in v2.0.1

type StringCache_Set_Call added in v2.0.1

type StringCache_Set_Call[T any] struct {
	*mock.Call
}

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

func (*StringCache_Set_Call[T]) Return added in v2.0.1

func (_c *StringCache_Set_Call[T]) Return(_a0 error) *StringCache_Set_Call[T]

func (*StringCache_Set_Call[T]) Run added in v2.0.1

func (_c *StringCache_Set_Call[T]) Run(run func(ctx context.Context, key any, object string, options ...store.Option)) *StringCache_Set_Call[T]

func (*StringCache_Set_Call[T]) RunAndReturn added in v2.0.1

func (_c *StringCache_Set_Call[T]) RunAndReturn(run func(context.Context, any, string, ...store.Option) error) *StringCache_Set_Call[T]

type SyncFunc

type SyncFunc struct {
	mock.Mock
}

SyncFunc is an autogenerated mock type for the SyncFunc type

func NewSyncFunc

func NewSyncFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *SyncFunc

NewSyncFunc creates a new instance of SyncFunc. 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 (*SyncFunc) EXPECT

func (_m *SyncFunc) EXPECT() *SyncFunc_Expecter

func (*SyncFunc) Execute

func (_m *SyncFunc) Execute(ctx context.Context, batch cache.Batch) ([]cache.ItemSyncResponse, error)

Execute provides a mock function with given fields: ctx, batch

type SyncFunc_Execute_Call

type SyncFunc_Execute_Call struct {
	*mock.Call
}

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

func (*SyncFunc_Execute_Call) Return

func (_c *SyncFunc_Execute_Call) Return(updatedBatch []cache.ItemSyncResponse, err error) *SyncFunc_Execute_Call

func (*SyncFunc_Execute_Call) Run

func (_c *SyncFunc_Execute_Call) Run(run func(ctx context.Context, batch cache.Batch)) *SyncFunc_Execute_Call

func (*SyncFunc_Execute_Call) RunAndReturn

type SyncFunc_Expecter

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

func (*SyncFunc_Expecter) Execute

func (_e *SyncFunc_Expecter) Execute(ctx interface{}, batch interface{}) *SyncFunc_Execute_Call

Execute is a helper method to define mock.On call

  • ctx context.Context
  • batch cache.Batch

type UInt64Cache added in v2.0.1

type UInt64Cache[T any] struct {
	mock.Mock
}

UInt64Cache is an autogenerated mock type for the UInt64Cache type

func NewUInt64Cache added in v2.0.1

func NewUInt64Cache[T any](t interface {
	mock.TestingT
	Cleanup(func())
}) *UInt64Cache[T]

NewUInt64Cache creates a new instance of UInt64Cache. 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 (*UInt64Cache[T]) Clear added in v2.0.1

func (_m *UInt64Cache[T]) Clear(ctx context.Context) error

Clear provides a mock function with given fields: ctx

func (*UInt64Cache[T]) Delete added in v2.0.1

func (_m *UInt64Cache[T]) Delete(ctx context.Context, key any) error

Delete provides a mock function with given fields: ctx, key

func (*UInt64Cache[T]) EXPECT added in v2.0.1

func (_m *UInt64Cache[T]) EXPECT() *UInt64Cache_Expecter[T]

func (*UInt64Cache[T]) Get added in v2.0.1

func (_m *UInt64Cache[T]) Get(ctx context.Context, key any) (uint64, error)

Get provides a mock function with given fields: ctx, key

func (*UInt64Cache[T]) GetType added in v2.0.1

func (_m *UInt64Cache[T]) GetType() string

GetType provides a mock function with no fields

func (*UInt64Cache[T]) Invalidate added in v2.0.1

func (_m *UInt64Cache[T]) Invalidate(ctx context.Context, options ...store.InvalidateOption) error

Invalidate provides a mock function with given fields: ctx, options

func (*UInt64Cache[T]) Set added in v2.0.1

func (_m *UInt64Cache[T]) Set(ctx context.Context, key any, object uint64, options ...store.Option) error

Set provides a mock function with given fields: ctx, key, object, options

type UInt64Cache_Clear_Call added in v2.0.1

type UInt64Cache_Clear_Call[T any] struct {
	*mock.Call
}

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

func (*UInt64Cache_Clear_Call[T]) Return added in v2.0.1

func (_c *UInt64Cache_Clear_Call[T]) Return(_a0 error) *UInt64Cache_Clear_Call[T]

func (*UInt64Cache_Clear_Call[T]) Run added in v2.0.1

func (_c *UInt64Cache_Clear_Call[T]) Run(run func(ctx context.Context)) *UInt64Cache_Clear_Call[T]

func (*UInt64Cache_Clear_Call[T]) RunAndReturn added in v2.0.1

func (_c *UInt64Cache_Clear_Call[T]) RunAndReturn(run func(context.Context) error) *UInt64Cache_Clear_Call[T]

type UInt64Cache_Delete_Call added in v2.0.1

type UInt64Cache_Delete_Call[T any] struct {
	*mock.Call
}

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

func (*UInt64Cache_Delete_Call[T]) Return added in v2.0.1

func (_c *UInt64Cache_Delete_Call[T]) Return(_a0 error) *UInt64Cache_Delete_Call[T]

func (*UInt64Cache_Delete_Call[T]) Run added in v2.0.1

func (_c *UInt64Cache_Delete_Call[T]) Run(run func(ctx context.Context, key any)) *UInt64Cache_Delete_Call[T]

func (*UInt64Cache_Delete_Call[T]) RunAndReturn added in v2.0.1

func (_c *UInt64Cache_Delete_Call[T]) RunAndReturn(run func(context.Context, any) error) *UInt64Cache_Delete_Call[T]

type UInt64Cache_Expecter added in v2.0.1

type UInt64Cache_Expecter[T any] struct {
	// contains filtered or unexported fields
}

func (*UInt64Cache_Expecter[T]) Clear added in v2.0.1

func (_e *UInt64Cache_Expecter[T]) Clear(ctx interface{}) *UInt64Cache_Clear_Call[T]

Clear is a helper method to define mock.On call

  • ctx context.Context

func (*UInt64Cache_Expecter[T]) Delete added in v2.0.1

func (_e *UInt64Cache_Expecter[T]) Delete(ctx interface{}, key interface{}) *UInt64Cache_Delete_Call[T]

Delete is a helper method to define mock.On call

  • ctx context.Context
  • key any

func (*UInt64Cache_Expecter[T]) Get added in v2.0.1

func (_e *UInt64Cache_Expecter[T]) Get(ctx interface{}, key interface{}) *UInt64Cache_Get_Call[T]

Get is a helper method to define mock.On call

  • ctx context.Context
  • key any

func (*UInt64Cache_Expecter[T]) GetType added in v2.0.1

func (_e *UInt64Cache_Expecter[T]) GetType() *UInt64Cache_GetType_Call[T]

GetType is a helper method to define mock.On call

func (*UInt64Cache_Expecter[T]) Invalidate added in v2.0.1

func (_e *UInt64Cache_Expecter[T]) Invalidate(ctx interface{}, options ...interface{}) *UInt64Cache_Invalidate_Call[T]

Invalidate is a helper method to define mock.On call

  • ctx context.Context
  • options ...store.InvalidateOption

func (*UInt64Cache_Expecter[T]) Set added in v2.0.1

func (_e *UInt64Cache_Expecter[T]) Set(ctx interface{}, key interface{}, object interface{}, options ...interface{}) *UInt64Cache_Set_Call[T]

Set is a helper method to define mock.On call

  • ctx context.Context
  • key any
  • object uint64
  • options ...store.Option

type UInt64Cache_GetType_Call added in v2.0.1

type UInt64Cache_GetType_Call[T any] struct {
	*mock.Call
}

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

func (*UInt64Cache_GetType_Call[T]) Return added in v2.0.1

func (*UInt64Cache_GetType_Call[T]) Run added in v2.0.1

func (_c *UInt64Cache_GetType_Call[T]) Run(run func()) *UInt64Cache_GetType_Call[T]

func (*UInt64Cache_GetType_Call[T]) RunAndReturn added in v2.0.1

func (_c *UInt64Cache_GetType_Call[T]) RunAndReturn(run func() string) *UInt64Cache_GetType_Call[T]

type UInt64Cache_Get_Call added in v2.0.1

type UInt64Cache_Get_Call[T any] struct {
	*mock.Call
}

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

func (*UInt64Cache_Get_Call[T]) Return added in v2.0.1

func (_c *UInt64Cache_Get_Call[T]) Return(_a0 uint64, _a1 error) *UInt64Cache_Get_Call[T]

func (*UInt64Cache_Get_Call[T]) Run added in v2.0.1

func (_c *UInt64Cache_Get_Call[T]) Run(run func(ctx context.Context, key any)) *UInt64Cache_Get_Call[T]

func (*UInt64Cache_Get_Call[T]) RunAndReturn added in v2.0.1

func (_c *UInt64Cache_Get_Call[T]) RunAndReturn(run func(context.Context, any) (uint64, error)) *UInt64Cache_Get_Call[T]

type UInt64Cache_Invalidate_Call added in v2.0.1

type UInt64Cache_Invalidate_Call[T any] struct {
	*mock.Call
}

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

func (*UInt64Cache_Invalidate_Call[T]) Return added in v2.0.1

func (*UInt64Cache_Invalidate_Call[T]) Run added in v2.0.1

func (*UInt64Cache_Invalidate_Call[T]) RunAndReturn added in v2.0.1

type UInt64Cache_Set_Call added in v2.0.1

type UInt64Cache_Set_Call[T any] struct {
	*mock.Call
}

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

func (*UInt64Cache_Set_Call[T]) Return added in v2.0.1

func (_c *UInt64Cache_Set_Call[T]) Return(_a0 error) *UInt64Cache_Set_Call[T]

func (*UInt64Cache_Set_Call[T]) Run added in v2.0.1

func (_c *UInt64Cache_Set_Call[T]) Run(run func(ctx context.Context, key any, object uint64, options ...store.Option)) *UInt64Cache_Set_Call[T]

func (*UInt64Cache_Set_Call[T]) RunAndReturn added in v2.0.1

func (_c *UInt64Cache_Set_Call[T]) RunAndReturn(run func(context.Context, any, uint64, ...store.Option) error) *UInt64Cache_Set_Call[T]

Jump to

Keyboard shortcuts

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