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, headers map[string]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, hostname string, port string, jar *cookiejar.Jar, method string, testURL string, headers map[string]string, payload string, expectedStatus int, expectedBody string, followRedirects bool) string
DoRequestOnServer does a request on listening server
Types ¶
Click to show internal directories.
Click to hide internal directories.