mocks

package
v4.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware struct {
	mock.Mock
}

Middleware is an autogenerated mock type for the Middleware type

func NewMiddleware

func NewMiddleware(t mockConstructorTestingTNewMiddleware) *Middleware

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

func (*Middleware) Attach

func (_m *Middleware) Attach(request *http.Request, response http.ResponseWriter) bool

Attach provides a mock function with given fields: request, response

func (*Middleware) Priority

func (_m *Middleware) Priority() int

Priority provides a mock function with given fields:

type ValidateUsernameAndPassword

type ValidateUsernameAndPassword struct {
	mock.Mock
}

ValidateUsernameAndPassword is an autogenerated mock type for the ValidateUsernameAndPassword type

func NewValidateUsernameAndPassword

func NewValidateUsernameAndPassword(t mockConstructorTestingTNewValidateUsernameAndPassword) *ValidateUsernameAndPassword

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

func (*ValidateUsernameAndPassword) Execute

func (_m *ValidateUsernameAndPassword) Execute(username string, password string) bool

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

Jump to

Keyboard shortcuts

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