Documentation ¶
Index ¶
- func CreateServerTester(t *testing.T, hostname string, port string, jar *cookiejar.Jar) ...
- func DoRequestOnHandler(t *testing.T, router http.Handler, method string, route string, header Header, ...) string
- func DoRequestOnServer(t *testing.T, hostname string, port string, jar *cookiejar.Jar, method string, ...) string
- type Header
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateServerTester ¶
func CreateServerTester(t *testing.T, hostname string, port string, jar *cookiejar.Jar) func(method string, url string, header Header, payload string, expectedStatus int, expectedBody string) string
CreateServerTester wraps DoRequestOnServer to factorize t, port and jar
Types ¶
Click to show internal directories.
Click to hide internal directories.