testhelper

package
v0.0.0-...-e94153c Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Mux is a multiplexer that can be used to register handlers.
	Mux *http.ServeMux

	// Server is an in-memory HTTP server for testing.
	Server *httptest.Server
)

Functions

func SetupHTTP

func SetupHTTP()

SetupHTTP prepares the Mux and Server.

func TeardownHTTP

func TeardownHTTP()

TeardownHTTP releases HTTP-related resources.

func URL

func URL() string

URL returns a fake URL that will actually target the Mux.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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