test

package
v0.0.0-...-269dea4 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package test implements unit-testing functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Request

func Request(mthd, path, body string) *http.Request

Request returns a Request from method, path and body strings.

func Route

func Route(t *testing.T, rter *mux.Router, rqst *http.Request, code int, body string)

Route asserts the status code and body of a Request served by a Router. If the body string starts with "^", it will be treated as a regular expression.

Types

This section is empty.

Jump to

Keyboard shortcuts

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