mock

package
v0.0.0-rc8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManagerMock

type ManagerMock struct {
	mock.Mock
}

ManagerMock is an autogenerated mock type for the Manager type

func NewManagerMock

func NewManagerMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *ManagerMock

NewManagerMock creates a new instance of ManagerMock. 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 (*ManagerMock) Delete

func (_m *ManagerMock) Delete(ctx context.Context, keys ...string) error

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

func (*ManagerMock) EXPECT

func (_m *ManagerMock) EXPECT() *ManagerMock_Expecter

func (*ManagerMock) Get

func (_m *ManagerMock) Get(ctx context.Context, key string, value interface{}) error

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

func (*ManagerMock) Invalidate

func (_m *ManagerMock) Invalidate(ctx context.Context, keyRegex string) error

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

func (*ManagerMock) Set

func (_m *ManagerMock) Set(ctx context.Context, key string, value interface{}) error

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

func (*ManagerMock) SetWithExpiration

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

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

type ManagerMock_Delete_Call

type ManagerMock_Delete_Call struct {
	*mock.Call
}

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

func (*ManagerMock_Delete_Call) Return

func (*ManagerMock_Delete_Call) Run

func (_c *ManagerMock_Delete_Call) Run(run func(ctx context.Context, keys ...string)) *ManagerMock_Delete_Call

func (*ManagerMock_Delete_Call) RunAndReturn

type ManagerMock_Expecter

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

func (*ManagerMock_Expecter) Delete

func (_e *ManagerMock_Expecter) Delete(ctx interface{}, keys ...interface{}) *ManagerMock_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • keys ...string

func (*ManagerMock_Expecter) Get

func (_e *ManagerMock_Expecter) Get(ctx interface{}, key interface{}, value interface{}) *ManagerMock_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • key string
  • value interface{}

func (*ManagerMock_Expecter) Invalidate

func (_e *ManagerMock_Expecter) Invalidate(ctx interface{}, keyRegex interface{}) *ManagerMock_Invalidate_Call

Invalidate is a helper method to define mock.On call

  • ctx context.Context
  • keyRegex string

func (*ManagerMock_Expecter) Set

func (_e *ManagerMock_Expecter) Set(ctx interface{}, key interface{}, value interface{}) *ManagerMock_Set_Call

Set is a helper method to define mock.On call

  • ctx context.Context
  • key string
  • value interface{}

func (*ManagerMock_Expecter) SetWithExpiration

func (_e *ManagerMock_Expecter) SetWithExpiration(ctx interface{}, key interface{}, value interface{}, expiration interface{}) *ManagerMock_SetWithExpiration_Call

SetWithExpiration is a helper method to define mock.On call

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

type ManagerMock_Get_Call

type ManagerMock_Get_Call struct {
	*mock.Call
}

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

func (*ManagerMock_Get_Call) Return

func (*ManagerMock_Get_Call) Run

func (_c *ManagerMock_Get_Call) Run(run func(ctx context.Context, key string, value interface{})) *ManagerMock_Get_Call

func (*ManagerMock_Get_Call) RunAndReturn

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

type ManagerMock_Invalidate_Call

type ManagerMock_Invalidate_Call struct {
	*mock.Call
}

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

func (*ManagerMock_Invalidate_Call) Return

func (*ManagerMock_Invalidate_Call) Run

func (*ManagerMock_Invalidate_Call) RunAndReturn

type ManagerMock_SetWithExpiration_Call

type ManagerMock_SetWithExpiration_Call struct {
	*mock.Call
}

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

func (*ManagerMock_SetWithExpiration_Call) Return

func (*ManagerMock_SetWithExpiration_Call) Run

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

func (*ManagerMock_SetWithExpiration_Call) RunAndReturn

type ManagerMock_Set_Call

type ManagerMock_Set_Call struct {
	*mock.Call
}

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

func (*ManagerMock_Set_Call) Return

func (*ManagerMock_Set_Call) Run

func (_c *ManagerMock_Set_Call) Run(run func(ctx context.Context, key string, value interface{})) *ManagerMock_Set_Call

func (*ManagerMock_Set_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

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