mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 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 Engine

type Engine struct {
	mock.Mock
}

Engine is an autogenerated mock type for the Engine type

func NewEngine

func NewEngine(t mockConstructorTestingTNewEngine) *Engine

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

func (*Engine) Any

func (_m *Engine) Any(relativePath string, handler http.HandlerFunc)

Any provides a mock function with given fields: relativePath, handler

func (*Engine) Delete

func (_m *Engine) Delete(relativePath string, handler http.HandlerFunc)

Delete provides a mock function with given fields: relativePath, handler

func (*Engine) Fallback

func (_m *Engine) Fallback(handler http.HandlerFunc)

Fallback provides a mock function with given fields: handler

func (*Engine) Get

func (_m *Engine) Get(relativePath string, handler http.HandlerFunc)

Get provides a mock function with given fields: relativePath, handler

func (*Engine) GlobalMiddleware

func (_m *Engine) GlobalMiddleware(middlewares ...http.Middleware)

GlobalMiddleware provides a mock function with given fields: middlewares

func (*Engine) Group

func (_m *Engine) Group(handler route.GroupFunc)

Group provides a mock function with given fields: handler

func (*Engine) Middleware

func (_m *Engine) Middleware(middlewares ...http.Middleware) route.Route

Middleware provides a mock function with given fields: middlewares

func (*Engine) Options

func (_m *Engine) Options(relativePath string, handler http.HandlerFunc)

Options provides a mock function with given fields: relativePath, handler

func (*Engine) Patch

func (_m *Engine) Patch(relativePath string, handler http.HandlerFunc)

Patch provides a mock function with given fields: relativePath, handler

func (*Engine) Post

func (_m *Engine) Post(relativePath string, handler http.HandlerFunc)

Post provides a mock function with given fields: relativePath, handler

func (*Engine) Prefix

func (_m *Engine) Prefix(addr string) route.Route

Prefix provides a mock function with given fields: addr

func (*Engine) Put

func (_m *Engine) Put(relativePath string, handler http.HandlerFunc)

Put provides a mock function with given fields: relativePath, handler

func (*Engine) Run

func (_m *Engine) Run(host ...string) error

Run provides a mock function with given fields: host

func (*Engine) RunTLS

func (_m *Engine) RunTLS(host ...string) error

RunTLS provides a mock function with given fields: host

func (*Engine) RunTLSWithCert

func (_m *Engine) RunTLSWithCert(host string, certFile string, keyFile string) error

RunTLSWithCert provides a mock function with given fields: host, certFile, keyFile

func (*Engine) ServeHTTP

func (_m *Engine) ServeHTTP(writer nethttp.ResponseWriter, request *nethttp.Request)

ServeHTTP provides a mock function with given fields: writer, request

func (*Engine) Static

func (_m *Engine) Static(relativePath string, root string)

Static provides a mock function with given fields: relativePath, root

func (*Engine) StaticFS

func (_m *Engine) StaticFS(relativePath string, fs nethttp.FileSystem)

StaticFS provides a mock function with given fields: relativePath, fs

func (*Engine) StaticFile

func (_m *Engine) StaticFile(relativePath string, filepath string)

StaticFile provides a mock function with given fields: relativePath, filepath

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) Any

func (_m *Route) Any(relativePath string, handler http.HandlerFunc)

Any provides a mock function with given fields: relativePath, handler

func (*Route) Delete

func (_m *Route) Delete(relativePath string, handler http.HandlerFunc)

Delete provides a mock function with given fields: relativePath, handler

func (*Route) Get

func (_m *Route) Get(relativePath string, handler http.HandlerFunc)

Get provides a mock function with given fields: relativePath, handler

func (*Route) Group

func (_m *Route) Group(handler route.GroupFunc)

Group provides a mock function with given fields: handler

func (*Route) Middleware

func (_m *Route) Middleware(middlewares ...http.Middleware) route.Route

Middleware provides a mock function with given fields: middlewares

func (*Route) Options

func (_m *Route) Options(relativePath string, handler http.HandlerFunc)

Options provides a mock function with given fields: relativePath, handler

func (*Route) Patch

func (_m *Route) Patch(relativePath string, handler http.HandlerFunc)

Patch provides a mock function with given fields: relativePath, handler

func (*Route) Post

func (_m *Route) Post(relativePath string, handler http.HandlerFunc)

Post provides a mock function with given fields: relativePath, handler

func (*Route) Prefix

func (_m *Route) Prefix(addr string) route.Route

Prefix provides a mock function with given fields: addr

func (*Route) Put

func (_m *Route) Put(relativePath string, handler http.HandlerFunc)

Put provides a mock function with given fields: relativePath, handler

func (*Route) Static

func (_m *Route) Static(relativePath string, root string)

Static provides a mock function with given fields: relativePath, root

func (*Route) StaticFS

func (_m *Route) StaticFS(relativePath string, fs nethttp.FileSystem)

StaticFS provides a mock function with given fields: relativePath, fs

func (*Route) StaticFile

func (_m *Route) StaticFile(relativePath string, filepath string)

StaticFile provides a mock function with given fields: relativePath, filepath

Jump to

Keyboard shortcuts

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