Documentation
¶
Index ¶
- type StorageRepo
- func (_m *StorageRepo) Delete(key string) error
- func (_m *StorageRepo) EXPECT() *StorageRepo_Expecter
- func (_m *StorageRepo) Get(key string) (string, error)
- func (_m *StorageRepo) GetSet(key string, fn func(string) (string, error)) (string, error)
- func (_m *StorageRepo) Increment(key string) (uint64, error)
- func (_m *StorageRepo) Set(key string, value string) error
- type StorageRepo_Delete_Call
- type StorageRepo_Expecter
- func (_e *StorageRepo_Expecter) Delete(key interface{}) *StorageRepo_Delete_Call
- func (_e *StorageRepo_Expecter) Get(key interface{}) *StorageRepo_Get_Call
- func (_e *StorageRepo_Expecter) GetSet(key interface{}, fn interface{}) *StorageRepo_GetSet_Call
- func (_e *StorageRepo_Expecter) Increment(key interface{}) *StorageRepo_Increment_Call
- func (_e *StorageRepo_Expecter) Set(key interface{}, value interface{}) *StorageRepo_Set_Call
- type StorageRepo_GetSet_Call
- func (_c *StorageRepo_GetSet_Call) Return(_a0 string, _a1 error) *StorageRepo_GetSet_Call
- func (_c *StorageRepo_GetSet_Call) Run(run func(key string, fn func(string) (string, error))) *StorageRepo_GetSet_Call
- func (_c *StorageRepo_GetSet_Call) RunAndReturn(run func(string, func(string) (string, error)) (string, error)) *StorageRepo_GetSet_Call
- type StorageRepo_Get_Call
- type StorageRepo_Increment_Call
- func (_c *StorageRepo_Increment_Call) Return(_a0 uint64, _a1 error) *StorageRepo_Increment_Call
- func (_c *StorageRepo_Increment_Call) Run(run func(key string)) *StorageRepo_Increment_Call
- func (_c *StorageRepo_Increment_Call) RunAndReturn(run func(string) (uint64, error)) *StorageRepo_Increment_Call
- type StorageRepo_Set_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageRepo ¶
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
type StorageRepo_Delete_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 (_c *StorageRepo_Delete_Call) Return(_a0 error) *StorageRepo_Delete_Call
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 ¶
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 (_c *StorageRepo_GetSet_Call) Return(_a0 string, _a1 error) *StorageRepo_GetSet_Call
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 ¶
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 ¶
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 (_c *StorageRepo_Increment_Call) Return(_a0 uint64, _a1 error) *StorageRepo_Increment_Call
func (*StorageRepo_Increment_Call) Run ¶
func (_c *StorageRepo_Increment_Call) Run(run func(key string)) *StorageRepo_Increment_Call
func (*StorageRepo_Increment_Call) RunAndReturn ¶
func (_c *StorageRepo_Increment_Call) RunAndReturn(run func(string) (uint64, error)) *StorageRepo_Increment_Call
type StorageRepo_Set_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 (_c *StorageRepo_Set_Call) Return(_a0 error) *StorageRepo_Set_Call
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