Documentation ¶
Index ¶
- func Header(t testing.TInterface, expect http.Header, actual http.Header)
- func JSON(t testing.TInterface, expect interface{}, actualReader io.ReadCloser)
- func Multipart(t testing.TInterface, body io.ReadCloser, h http.Header, ...)
- func Query(t testing.TInterface, expect url.Values, actual url.Values)
- func WriteJSON(t testing.TInterface, w http.ResponseWriter, v interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSON ¶
func JSON(t testing.TInterface, expect interface{}, actualReader io.ReadCloser)
JSON checks if body contains the JSON data matching the passed expected value.
func Multipart ¶
func Multipart( t testing.TInterface, body io.ReadCloser, h http.Header, expectJSON interface{}, expectFiles []sendpart.File, )
Multipart checks if the body contains multipart data including the passed files and optionally the passed JSON data.
func WriteJSON ¶
func WriteJSON(t testing.TInterface, w http.ResponseWriter, v interface{})
WriteJSON writes the passed value to the passed http.ResponseWriter.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.