Documentation
¶
Index ¶
- type Authenticator
- type Authenticator_AuthenticateUser_Call
- func (_c *Authenticator_AuthenticateUser_Call) Return(context1 context.Context, err error) *Authenticator_AuthenticateUser_Call
- func (_c *Authenticator_AuthenticateUser_Call) Run(run func(ctx context.Context, role auth.UserRole)) *Authenticator_AuthenticateUser_Call
- func (_c *Authenticator_AuthenticateUser_Call) RunAndReturn(run func(ctx context.Context, role auth.UserRole) (context.Context, error)) *Authenticator_AuthenticateUser_Call
- type Authenticator_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
Authenticator is an autogenerated mock type for the Authenticator type
func NewAuthenticator ¶
func NewAuthenticator(t interface {
mock.TestingT
Cleanup(func())
}) *Authenticator
NewAuthenticator creates a new instance of Authenticator. 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 (*Authenticator) AuthenticateUser ¶
func (_mock *Authenticator) AuthenticateUser(ctx context.Context, role auth.UserRole) (context.Context, error)
AuthenticateUser provides a mock function for the type Authenticator
func (*Authenticator) EXPECT ¶
func (_m *Authenticator) EXPECT() *Authenticator_Expecter
type Authenticator_AuthenticateUser_Call ¶
Authenticator_AuthenticateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AuthenticateUser'
func (*Authenticator_AuthenticateUser_Call) Return ¶
func (_c *Authenticator_AuthenticateUser_Call) Return(context1 context.Context, err error) *Authenticator_AuthenticateUser_Call
func (*Authenticator_AuthenticateUser_Call) Run ¶
func (_c *Authenticator_AuthenticateUser_Call) Run(run func(ctx context.Context, role auth.UserRole)) *Authenticator_AuthenticateUser_Call
func (*Authenticator_AuthenticateUser_Call) RunAndReturn ¶
func (_c *Authenticator_AuthenticateUser_Call) RunAndReturn(run func(ctx context.Context, role auth.UserRole) (context.Context, error)) *Authenticator_AuthenticateUser_Call
type Authenticator_Expecter ¶
type Authenticator_Expecter struct {
// contains filtered or unexported fields
}
func (*Authenticator_Expecter) AuthenticateUser ¶
func (_e *Authenticator_Expecter) AuthenticateUser(ctx interface{}, role interface{}) *Authenticator_AuthenticateUser_Call
AuthenticateUser is a helper method to define mock.On call
- ctx context.Context
- role auth.UserRole
Click to show internal directories.
Click to hide internal directories.