Documentation ¶
Index ¶
- func FatalIf(t T, condition bool, format string, v ...interface{})
- func FatalIfError(t T, err error)
- func FatalIfWrongError(t T, err error, message string)
- func FatalIfWrongResponseBody(t T, resp *http.Response, body string)
- func FatalIfWrongResponseStatus(t T, resp *http.Response, statusCode int)
- func NewJsonTestServer(statusCode int, val interface{}) *httptest.Server
- func NewTestServer(statusCode int, body []byte) *httptest.Server
- func RecordResponse(handler func(http.ResponseWriter, *http.Request), req *http.Request) *http.Response
- type T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FatalIfError ¶
func FatalIfWrongError ¶
func NewJsonTestServer ¶
func RecordResponse ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.