Documentation ¶
Overview ¶
Package testutil contains helpers for tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶
ContainsString checks if an array contains a string.
func RandomValue ¶
func RandomValue() []byte
RandomValue returns a random byte array (with max 1024 bytes)
func RequestJSON ¶
func RequestJSON(h http.HandlerFunc, method, target string, payload, dst interface{}) (*httptest.ResponseRecorder, error)
RequestJSON does a request expecting a JSON response.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.