mocks

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IKeyValue

type IKeyValue struct {
	mock.Mock
}

IKeyValue is an autogenerated mock type for the IKeyValue type

func NewIKeyValue

func NewIKeyValue(t interface {
	mock.TestingT
	Cleanup(func())
}) *IKeyValue

NewIKeyValue creates a new instance of IKeyValue. 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 (*IKeyValue) Close

func (_m *IKeyValue) Close() error

Close provides a mock function with no fields

func (*IKeyValue) Delete

func (_m *IKeyValue) Delete(ctx context.Context, key string) error

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

func (*IKeyValue) EXPECT

func (_m *IKeyValue) EXPECT() *IKeyValue_Expecter

func (*IKeyValue) Get

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

func (*IKeyValue) IncrementCounterWithLimit

func (_m *IKeyValue) IncrementCounterWithLimit(ctx context.Context, key string, counterMax int64, ttl time.Duration) error

IncrementCounterWithLimit provides a mock function with given fields: ctx, key, counterMax, ttl

func (*IKeyValue) Set

func (_m *IKeyValue) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) error

Set provides a mock function with given fields: ctx, key, value, expiration

type IKeyValue_Close_Call

type IKeyValue_Close_Call struct {
	*mock.Call
}

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

func (*IKeyValue_Close_Call) Return

func (*IKeyValue_Close_Call) Run

func (_c *IKeyValue_Close_Call) Run(run func()) *IKeyValue_Close_Call

func (*IKeyValue_Close_Call) RunAndReturn

func (_c *IKeyValue_Close_Call) RunAndReturn(run func() error) *IKeyValue_Close_Call

type IKeyValue_Delete_Call

type IKeyValue_Delete_Call struct {
	*mock.Call
}

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

func (*IKeyValue_Delete_Call) Return

func (*IKeyValue_Delete_Call) Run

func (_c *IKeyValue_Delete_Call) Run(run func(ctx context.Context, key string)) *IKeyValue_Delete_Call

func (*IKeyValue_Delete_Call) RunAndReturn

type IKeyValue_Expecter

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

func (*IKeyValue_Expecter) Close

Close is a helper method to define mock.On call

func (*IKeyValue_Expecter) Delete

func (_e *IKeyValue_Expecter) Delete(ctx interface{}, key interface{}) *IKeyValue_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • key string

func (*IKeyValue_Expecter) Get

func (_e *IKeyValue_Expecter) Get(ctx interface{}, key interface{}) *IKeyValue_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • key string

func (*IKeyValue_Expecter) IncrementCounterWithLimit

func (_e *IKeyValue_Expecter) IncrementCounterWithLimit(ctx interface{}, key interface{}, counterMax interface{}, ttl interface{}) *IKeyValue_IncrementCounterWithLimit_Call

IncrementCounterWithLimit is a helper method to define mock.On call

  • ctx context.Context
  • key string
  • counterMax int64
  • ttl time.Duration

func (*IKeyValue_Expecter) Set

func (_e *IKeyValue_Expecter) Set(ctx interface{}, key interface{}, value interface{}, expiration interface{}) *IKeyValue_Set_Call

Set is a helper method to define mock.On call

  • ctx context.Context
  • key string
  • value interface{}
  • expiration time.Duration

type IKeyValue_Get_Call

type IKeyValue_Get_Call struct {
	*mock.Call
}

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

func (*IKeyValue_Get_Call) Return

func (*IKeyValue_Get_Call) Run

func (_c *IKeyValue_Get_Call) Run(run func(ctx context.Context, key string)) *IKeyValue_Get_Call

func (*IKeyValue_Get_Call) RunAndReturn

type IKeyValue_IncrementCounterWithLimit_Call

type IKeyValue_IncrementCounterWithLimit_Call struct {
	*mock.Call
}

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

func (*IKeyValue_IncrementCounterWithLimit_Call) Return

func (*IKeyValue_IncrementCounterWithLimit_Call) Run

func (*IKeyValue_IncrementCounterWithLimit_Call) RunAndReturn

type IKeyValue_Set_Call

type IKeyValue_Set_Call struct {
	*mock.Call
}

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

func (*IKeyValue_Set_Call) Return

func (_c *IKeyValue_Set_Call) Return(_a0 error) *IKeyValue_Set_Call

func (*IKeyValue_Set_Call) Run

func (_c *IKeyValue_Set_Call) Run(run func(ctx context.Context, key string, value interface{}, expiration time.Duration)) *IKeyValue_Set_Call

func (*IKeyValue_Set_Call) RunAndReturn

func (_c *IKeyValue_Set_Call) RunAndReturn(run func(context.Context, string, interface{}, time.Duration) error) *IKeyValue_Set_Call

Jump to

Keyboard shortcuts

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