mocks

package
v0.0.0-...-ff63446 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationMiddleware

type AuthenticationMiddleware struct {
	mock.Mock
}

AuthenticationMiddleware is an autogenerated mock type for the AuthenticationMiddleware type

func NewAuthenticationMiddleware

func NewAuthenticationMiddleware(t mockConstructorTestingTNewAuthenticationMiddleware) *AuthenticationMiddleware

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

func (*AuthenticationMiddleware) Handle

Handle provides a mock function with given fields: next

type JSONController

type JSONController struct {
	mock.Mock
}

JSONController is an autogenerated mock type for the JSONController type

func NewJSONController

func NewJSONController(t mockConstructorTestingTNewJSONController) *JSONController

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

func (*JSONController) Wrap

Wrap provides a mock function with given fields: handler

type JSONHandler

type JSONHandler struct {
	mock.Mock
}

JSONHandler is an autogenerated mock type for the JSONHandler type

func NewJSONHandler

func NewJSONHandler(t mockConstructorTestingTNewJSONHandler) *JSONHandler

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

func (*JSONHandler) Execute

func (_m *JSONHandler) Execute(w http.ResponseWriter, r *http.Request) (interface{}, httperrors.HTTPError)

Execute provides a mock function with given fields: w, r

type MiddlewareLogger

type MiddlewareLogger struct {
	mock.Mock
}

MiddlewareLogger is an autogenerated mock type for the MiddlewareLogger type

func NewMiddlewareLogger

func NewMiddlewareLogger(t mockConstructorTestingTNewMiddlewareLogger) *MiddlewareLogger

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

func (*MiddlewareLogger) Handle

func (_m *MiddlewareLogger) Handle(next http.Handler) http.Handler

Handle provides a mock function with given fields: next

Jump to

Keyboard shortcuts

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