mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisClient

type RedisClient struct {
	mock.Mock
}

RedisClient is an autogenerated mock type for the RedisClient type

func NewRedisClient

func NewRedisClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *RedisClient

NewRedisClient creates a new instance of RedisClient. 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 (*RedisClient) Del

func (_m *RedisClient) Del(ctx context.Context, keys ...string) *redis.IntCmd

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

func (*RedisClient) EXPECT

func (_m *RedisClient) EXPECT() *RedisClient_Expecter

func (*RedisClient) HGetAll

func (_m *RedisClient) HGetAll(ctx context.Context, key string) *redis.MapStringStringCmd

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

func (*RedisClient) HSet

func (_m *RedisClient) HSet(ctx context.Context, key string, values ...interface{}) *redis.IntCmd

HSet provides a mock function with given fields: ctx, key, values

type RedisClient_Del_Call

type RedisClient_Del_Call struct {
	*mock.Call
}

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

func (*RedisClient_Del_Call) Return

func (*RedisClient_Del_Call) Run

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

func (*RedisClient_Del_Call) RunAndReturn

func (_c *RedisClient_Del_Call) RunAndReturn(run func(context.Context, ...string) *redis.IntCmd) *RedisClient_Del_Call

type RedisClient_Expecter

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

func (*RedisClient_Expecter) Del

func (_e *RedisClient_Expecter) Del(ctx interface{}, keys ...interface{}) *RedisClient_Del_Call

Del is a helper method to define mock.On call

  • ctx context.Context
  • keys ...string

func (*RedisClient_Expecter) HGetAll

func (_e *RedisClient_Expecter) HGetAll(ctx interface{}, key interface{}) *RedisClient_HGetAll_Call

HGetAll is a helper method to define mock.On call

  • ctx context.Context
  • key string

func (*RedisClient_Expecter) HSet

func (_e *RedisClient_Expecter) HSet(ctx interface{}, key interface{}, values ...interface{}) *RedisClient_HSet_Call

HSet is a helper method to define mock.On call

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

type RedisClient_HGetAll_Call

type RedisClient_HGetAll_Call struct {
	*mock.Call
}

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

func (*RedisClient_HGetAll_Call) Return

func (*RedisClient_HGetAll_Call) Run

func (*RedisClient_HGetAll_Call) RunAndReturn

type RedisClient_HSet_Call

type RedisClient_HSet_Call struct {
	*mock.Call
}

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

func (*RedisClient_HSet_Call) Return

func (*RedisClient_HSet_Call) Run

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

func (*RedisClient_HSet_Call) RunAndReturn

func (_c *RedisClient_HSet_Call) RunAndReturn(run func(context.Context, string, ...interface{}) *redis.IntCmd) *RedisClient_HSet_Call

Jump to

Keyboard shortcuts

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