httptest

package
v0.0.39-alpha1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestServer

func TestServer(
	t *testing.T,
	handler http.HandlerFunc,
	expectedBody string,
	fn func(*mux.Router, *http.Request),
	orderedLogs ...[]string,
)

Types

type QueryHandler

type QueryHandler struct {
	V        viewer.ViewerContext
	T        *testing.T
	Response []byte
	Callback func(http.ResponseWriter, *http.Request)
}

func (*QueryHandler) HandlerFunc

func (h *QueryHandler) HandlerFunc(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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