mocks

package
v0.0.0-...-efd23c5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	mock.Mock
}

Cache is an autogenerated mock type for the Cache type

func NewCache

func NewCache(t interface {
	mock.TestingT
	Cleanup(func())
}) *Cache

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. The first argument is typically a *testing.T value.

func (*Cache) Add

func (_m *Cache) Add(key string)

Add provides a mock function with given fields: key

func (*Cache) Exists

func (_m *Cache) Exists(key string) bool

Exists provides a mock function with given fields: key

func (*Cache) GetValue

func (_m *Cache) GetValue(ctx context.Context, key string) (string, error)

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

func (*Cache) SetValue

func (_m *Cache) SetValue(ctx context.Context, key string, value string) error

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

Jump to

Keyboard shortcuts

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