mocks

package
v4.1.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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