Documentation ¶
Index ¶
- func CheckResponse(w *httptest.ResponseRecorder, wantStatus int, wantHeaders http.Header, ...)
- func CheckResponseBody(w *httptest.ResponseRecorder, wantStatus int, wantBody string)
- func CheckServiceUnavailable(w *httptest.ResponseRecorder)
- func CheckUnauthorized(w *httptest.ResponseRecorder)
- func NewRequest(method, url string, body io.Reader) *http.Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckResponse ¶
func CheckResponse(w *httptest.ResponseRecorder, wantStatus int, wantHeaders http.Header, wantBody string)
CheckResponse checks that the http response matches expectations
func CheckResponseBody ¶
func CheckResponseBody(w *httptest.ResponseRecorder, wantStatus int, wantBody string)
CheckResponseBody checks that the http response matches expectations
func CheckServiceUnavailable ¶
func CheckServiceUnavailable(w *httptest.ResponseRecorder)
CheckServiceUnavailable checks if response is web.ServiceUnavailable
func CheckUnauthorized ¶
func CheckUnauthorized(w *httptest.ResponseRecorder)
CheckUnauthorized checks if response is web.CheckUnauthorized
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.