tester

package
v0.0.0-...-50b1eba Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoRequestOnHandler

func DoRequestOnHandler(t *testing.T, router http.Handler, method string, route string, authHeader string, payload string, expectedStatus int, expectedBody string) string

DoRequestOnHandler does a request on a router (or handler) and check the response

func DoRequestOnServer

func DoRequestOnServer(t *testing.T, jar *cookiejar.Jar, port string, method string, url string, authHeader string, payload string, expectedStatus int, expectedBody string) string

DoRequestOnServer does a request on listening server

Types

This section is empty.

Jump to

Keyboard shortcuts

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