mocks

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2025 License: AGPL-3.0-or-later Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenStore

type TokenStore struct {
	mock.Mock
}

TokenStore is an autogenerated mock type for the TokenStore type

func NewTokenStore

func NewTokenStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *TokenStore

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

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

Delete provides a mock function with given fields: key

func (*TokenStore) EXPECT

func (_m *TokenStore) EXPECT() *TokenStore_Expecter

func (*TokenStore) Get

func (_m *TokenStore) Get(key string) (domain.Token, error)

Get provides a mock function with given fields: key

func (*TokenStore) Put

func (_m *TokenStore) Put(key string, value domain.Token) error

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

type TokenStore_Delete_Call

type TokenStore_Delete_Call struct {
	*mock.Call
}

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

func (*TokenStore_Delete_Call) Return

func (*TokenStore_Delete_Call) Run

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

func (*TokenStore_Delete_Call) RunAndReturn

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

type TokenStore_Expecter

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

func (*TokenStore_Expecter) Delete

func (_e *TokenStore_Expecter) Delete(key interface{}) *TokenStore_Delete_Call

Delete is a helper method to define mock.On call

  • key string

func (*TokenStore_Expecter) Get

func (_e *TokenStore_Expecter) Get(key interface{}) *TokenStore_Get_Call

Get is a helper method to define mock.On call

  • key string

func (*TokenStore_Expecter) Put

func (_e *TokenStore_Expecter) Put(key interface{}, value interface{}) *TokenStore_Put_Call

Put is a helper method to define mock.On call

  • key string
  • value domain.Token

type TokenStore_Get_Call

type TokenStore_Get_Call struct {
	*mock.Call
}

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

func (*TokenStore_Get_Call) Return

func (*TokenStore_Get_Call) Run

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

func (*TokenStore_Get_Call) RunAndReturn

func (_c *TokenStore_Get_Call) RunAndReturn(run func(string) (domain.Token, error)) *TokenStore_Get_Call

type TokenStore_Put_Call

type TokenStore_Put_Call struct {
	*mock.Call
}

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

func (*TokenStore_Put_Call) Return

func (*TokenStore_Put_Call) Run

func (_c *TokenStore_Put_Call) Run(run func(key string, value domain.Token)) *TokenStore_Put_Call

func (*TokenStore_Put_Call) RunAndReturn

func (_c *TokenStore_Put_Call) RunAndReturn(run func(string, domain.Token) error) *TokenStore_Put_Call

Jump to

Keyboard shortcuts

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