Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenStore ¶
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
type TokenStore_Delete_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 (_c *TokenStore_Delete_Call) Return(_a0 error) *TokenStore_Delete_Call
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 ¶
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 (_c *TokenStore_Get_Call) Return(_a0 domain.Token, _a1 error) *TokenStore_Get_Call
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 ¶
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 (_c *TokenStore_Put_Call) Return(_a0 error) *TokenStore_Put_Call
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