mocks

package
v4.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FindUserByUsernameAndPassword

type FindUserByUsernameAndPassword struct {
	mock.Mock
}

FindUserByUsernameAndPassword is an autogenerated mock type for the FindUserByUsernameAndPassword type

func NewFindUserByUsernameAndPassword

func NewFindUserByUsernameAndPassword(t mockConstructorTestingTNewFindUserByUsernameAndPassword) *FindUserByUsernameAndPassword

NewFindUserByUsernameAndPassword creates a new instance of FindUserByUsernameAndPassword. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*FindUserByUsernameAndPassword) Execute

func (_m *FindUserByUsernameAndPassword) Execute(username string, password string) jwt.MapClaims

Execute provides a mock function with given fields: username, password

type Route

type Route struct {
	mock.Mock
}

Route is an autogenerated mock type for the Route type

func NewRoute

func NewRoute(t mockConstructorTestingTNewRoute) *Route

NewRoute creates a new instance of Route. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Route) Handle

func (_m *Route) Handle(w http.ResponseWriter, r *http.Request, params map[string]string)

Handle provides a mock function with given fields: w, r, params

func (*Route) Method

func (_m *Route) Method() string

Method provides a mock function with given fields:

func (*Route) Middlewares

func (_m *Route) Middlewares() []middlewares.Middleware

Middlewares provides a mock function with given fields:

func (*Route) Path

func (_m *Route) Path() string

Path provides a mock function with given fields:

func (*Route) SetClient

func (_m *Route) SetClient(client *grpc.ClientConn)

SetClient provides a mock function with given fields: client

Jump to

Keyboard shortcuts

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