Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
Cache is an autogenerated mock type for the Cache type
func NewCache ¶
func NewCache[T interface{}](t mockConstructorTestingTNewCache) *Cache[T]
NewCache creates a new instance of Cache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Cache[T]) EXPECT ¶
func (_m *Cache[T]) EXPECT() *Cache_Expecter[T]
type Cache_Expecter ¶
type Cache_Expecter[T interface{}] struct {
// contains filtered or unexported fields
}
func (*Cache_Expecter[T]) Get ¶
func (_e *Cache_Expecter[T]) Get(ctx interface{}, key interface{}) *Cache_Get_Call[T]
Get is a helper method to define mock.On call
- ctx context.Context
- key string
func (*Cache_Expecter[T]) Set ¶
func (_e *Cache_Expecter[T]) Set(ctx interface{}, key interface{}, value interface{}, opts ...interface{}) *Cache_Set_Call[T]
Set is a helper method to define mock.On call
- ctx context.Context
- key string
- value T
- opts ...cache.Option
type Cache_Get_Call ¶
Cache_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Cache_Get_Call[T]) Return ¶
func (_c *Cache_Get_Call[T]) Return(_a0 *T, _a1 error) *Cache_Get_Call[T]
func (*Cache_Get_Call[T]) Run ¶
func (_c *Cache_Get_Call[T]) Run(run func(ctx context.Context, key string)) *Cache_Get_Call[T]
type Cache_Set_Call ¶
Cache_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
func (*Cache_Set_Call[T]) Return ¶
func (_c *Cache_Set_Call[T]) Return(_a0 error) *Cache_Set_Call[T]
func (*Cache_Set_Call[T]) Run ¶
func (_c *Cache_Set_Call[T]) Run(run func(ctx context.Context, key string, value T, opts ...cache.Option)) *Cache_Set_Call[T]
Click to show internal directories.
Click to hide internal directories.