test

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectStatus

func ExpectStatus(t *testing.T, app *fiber.App, req *http.Request, status int)

Types

type RouteTest

type RouteTest struct {
	// contains filtered or unexported fields
}

func New

func New() *RouteTest

New constructor

func (*RouteTest) SetLocal

func (r *RouteTest) SetLocal(key string, value interface{})

SetLocal sets a local variable for the test request context

func (*RouteTest) Test

func (r *RouteTest) Test(handler RouteTestHandler, data *fiber.Map)

Test a route action

type RouteTestHandler

type RouteTestHandler func(ctx *fiber.Ctx, tx *storage.Transaction)

RouteTestHandler handler func for a route test

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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