Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestResponse ¶
TestResponse wrapper for http.Response.
func (*TestResponse) RequireOK ¶
func (r *TestResponse) RequireOK(t *testing.T)
RequireOK check that response code is 200 OK.
func (*TestResponse) RequireTooEarly ¶
func (r *TestResponse) RequireTooEarly(t *testing.T)
RequireTooEarly check that response code is 429 Too Early.
func (*TestResponse) RequireUnmarshal ¶
func (r *TestResponse) RequireUnmarshal(t *testing.T, dst interface{})
RequireUnmarshal try unmarshal response body to given struct.
Click to show internal directories.
Click to hide internal directories.