mocks

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 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 Engine

type Engine struct {
	mock.Mock
}

Engine is an autogenerated mock type for the Engine type

func NewEngine

func NewEngine(t NewEngineT) *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(_a0 string, _a1 http.HandlerFunc)

Any provides a mock function with given fields: _a0, _a1

func (*Engine) Delete

func (_m *Engine) Delete(_a0 string, _a1 http.HandlerFunc)

Delete provides a mock function with given fields: _a0, _a1

func (*Engine) Get

func (_m *Engine) Get(_a0 string, _a1 http.HandlerFunc)

Get provides a mock function with given fields: _a0, _a1

func (*Engine) GlobalMiddleware

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

GlobalMiddleware provides a mock function with given fields: _a0

func (*Engine) Group

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

Group provides a mock function with given fields: _a0

func (*Engine) Middleware

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

Middleware provides a mock function with given fields: _a0

func (*Engine) Options

func (_m *Engine) Options(_a0 string, _a1 http.HandlerFunc)

Options provides a mock function with given fields: _a0, _a1

func (*Engine) Patch

func (_m *Engine) Patch(_a0 string, _a1 http.HandlerFunc)

Patch provides a mock function with given fields: _a0, _a1

func (*Engine) Post

func (_m *Engine) Post(_a0 string, _a1 http.HandlerFunc)

Post provides a mock function with given fields: _a0, _a1

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(_a0 string, _a1 http.HandlerFunc)

Put provides a mock function with given fields: _a0, _a1

func (*Engine) Run

func (_m *Engine) Run(addr string) error

Run provides a mock function with given fields: addr

func (*Engine) ServeHTTP

func (_m *Engine) ServeHTTP(w nethttp.ResponseWriter, req *nethttp.Request)

ServeHTTP provides a mock function with given fields: w, req

func (*Engine) Static

func (_m *Engine) Static(_a0 string, _a1 string)

Static provides a mock function with given fields: _a0, _a1

func (*Engine) StaticFS

func (_m *Engine) StaticFS(_a0 string, _a1 nethttp.FileSystem)

StaticFS provides a mock function with given fields: _a0, _a1

func (*Engine) StaticFile

func (_m *Engine) StaticFile(_a0 string, _a1 string)

StaticFile provides a mock function with given fields: _a0, _a1

type NewEngineT

type NewEngineT interface {
	mock.TestingT
	Cleanup(func())
}

type NewRouteT

type NewRouteT interface {
	mock.TestingT
	Cleanup(func())
}

type Route

type Route struct {
	mock.Mock
}

Route is an autogenerated mock type for the Route type

func NewRoute

func NewRoute(t NewRouteT) *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(_a0 string, _a1 http.HandlerFunc)

Any provides a mock function with given fields: _a0, _a1

func (*Route) Delete

func (_m *Route) Delete(_a0 string, _a1 http.HandlerFunc)

Delete provides a mock function with given fields: _a0, _a1

func (*Route) Get

func (_m *Route) Get(_a0 string, _a1 http.HandlerFunc)

Get provides a mock function with given fields: _a0, _a1

func (*Route) Group

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

Group provides a mock function with given fields: _a0

func (*Route) Middleware

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

Middleware provides a mock function with given fields: _a0

func (*Route) Options

func (_m *Route) Options(_a0 string, _a1 http.HandlerFunc)

Options provides a mock function with given fields: _a0, _a1

func (*Route) Patch

func (_m *Route) Patch(_a0 string, _a1 http.HandlerFunc)

Patch provides a mock function with given fields: _a0, _a1

func (*Route) Post

func (_m *Route) Post(_a0 string, _a1 http.HandlerFunc)

Post provides a mock function with given fields: _a0, _a1

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(_a0 string, _a1 http.HandlerFunc)

Put provides a mock function with given fields: _a0, _a1

func (*Route) Static

func (_m *Route) Static(_a0 string, _a1 string)

Static provides a mock function with given fields: _a0, _a1

func (*Route) StaticFS

func (_m *Route) StaticFS(_a0 string, _a1 nethttp.FileSystem)

StaticFS provides a mock function with given fields: _a0, _a1

func (*Route) StaticFile

func (_m *Route) StaticFile(_a0 string, _a1 string)

StaticFile provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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