mocks

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StorageRepo

type StorageRepo struct {
	mock.Mock
}

StorageRepo is an autogenerated mock type for the storageRepo type

func NewStorageRepo

func NewStorageRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *StorageRepo

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

func (_m *StorageRepo) Delete(key string) error

Delete provides a mock function with given fields: key

func (*StorageRepo) EXPECT

func (_m *StorageRepo) EXPECT() *StorageRepo_Expecter

func (*StorageRepo) Get

func (_m *StorageRepo) Get(key string) (string, error)

Get provides a mock function with given fields: key

func (*StorageRepo) GetSet

func (_m *StorageRepo) GetSet(key string, fn func(string) (string, error)) (string, error)

GetSet provides a mock function with given fields: key, fn

func (*StorageRepo) Increment

func (_m *StorageRepo) Increment(key string) (uint64, error)

Increment provides a mock function with given fields: key

func (*StorageRepo) Set

func (_m *StorageRepo) Set(key string, value string) error

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

type StorageRepo_Delete_Call

type StorageRepo_Delete_Call struct {
	*mock.Call
}

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

func (*StorageRepo_Delete_Call) Return

func (*StorageRepo_Delete_Call) Run

func (_c *StorageRepo_Delete_Call) Run(run func(key string)) *StorageRepo_Delete_Call

func (*StorageRepo_Delete_Call) RunAndReturn

func (_c *StorageRepo_Delete_Call) RunAndReturn(run func(string) error) *StorageRepo_Delete_Call

type StorageRepo_Expecter

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

func (*StorageRepo_Expecter) Delete

func (_e *StorageRepo_Expecter) Delete(key interface{}) *StorageRepo_Delete_Call

Delete is a helper method to define mock.On call

  • key string

func (*StorageRepo_Expecter) Get

func (_e *StorageRepo_Expecter) Get(key interface{}) *StorageRepo_Get_Call

Get is a helper method to define mock.On call

  • key string

func (*StorageRepo_Expecter) GetSet

func (_e *StorageRepo_Expecter) GetSet(key interface{}, fn interface{}) *StorageRepo_GetSet_Call

GetSet is a helper method to define mock.On call

  • key string
  • fn func(string)(string , error)

func (*StorageRepo_Expecter) Increment

func (_e *StorageRepo_Expecter) Increment(key interface{}) *StorageRepo_Increment_Call

Increment is a helper method to define mock.On call

  • key string

func (*StorageRepo_Expecter) Set

func (_e *StorageRepo_Expecter) Set(key interface{}, value interface{}) *StorageRepo_Set_Call

Set is a helper method to define mock.On call

  • key string
  • value string

type StorageRepo_GetSet_Call

type StorageRepo_GetSet_Call struct {
	*mock.Call
}

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

func (*StorageRepo_GetSet_Call) Return

func (*StorageRepo_GetSet_Call) Run

func (_c *StorageRepo_GetSet_Call) Run(run func(key string, fn func(string) (string, error))) *StorageRepo_GetSet_Call

func (*StorageRepo_GetSet_Call) RunAndReturn

func (_c *StorageRepo_GetSet_Call) RunAndReturn(run func(string, func(string) (string, error)) (string, error)) *StorageRepo_GetSet_Call

type StorageRepo_Get_Call

type StorageRepo_Get_Call struct {
	*mock.Call
}

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

func (*StorageRepo_Get_Call) Return

func (_c *StorageRepo_Get_Call) Return(_a0 string, _a1 error) *StorageRepo_Get_Call

func (*StorageRepo_Get_Call) Run

func (_c *StorageRepo_Get_Call) Run(run func(key string)) *StorageRepo_Get_Call

func (*StorageRepo_Get_Call) RunAndReturn

func (_c *StorageRepo_Get_Call) RunAndReturn(run func(string) (string, error)) *StorageRepo_Get_Call

type StorageRepo_Increment_Call

type StorageRepo_Increment_Call struct {
	*mock.Call
}

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

func (*StorageRepo_Increment_Call) Return

func (*StorageRepo_Increment_Call) Run

func (*StorageRepo_Increment_Call) RunAndReturn

type StorageRepo_Set_Call

type StorageRepo_Set_Call struct {
	*mock.Call
}

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

func (*StorageRepo_Set_Call) Return

func (*StorageRepo_Set_Call) Run

func (_c *StorageRepo_Set_Call) Run(run func(key string, value string)) *StorageRepo_Set_Call

func (*StorageRepo_Set_Call) RunAndReturn

func (_c *StorageRepo_Set_Call) RunAndReturn(run func(string, string) error) *StorageRepo_Set_Call

Jump to

Keyboard shortcuts

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