Documentation
¶
Index ¶
- func CheckNoError(t *testing.T, err error)
- func LogTest(action func(t *testing.T, output *bytes.Buffer)) func(t *testing.T)
- func NewTestClient(responseCreator RoundTripFunc) *http.Client
- func ReadBody(t *testing.T, recorder *httptest.ResponseRecorder) string
- func ReadHeader(t *testing.T, recorder *httptest.ResponseRecorder) http.Header
- type RoundTripFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckNoError ¶ added in v0.0.3
func NewTestClient ¶
func NewTestClient(responseCreator RoundTripFunc) *http.Client
func ReadBody ¶ added in v0.0.6
func ReadBody(t *testing.T, recorder *httptest.ResponseRecorder) string
func ReadHeader ¶ added in v0.0.7
Types ¶
Click to show internal directories.
Click to hide internal directories.