Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Req ¶
type Req struct {
// contains filtered or unexported fields
}
Req is a request builder.
type Resp ¶
type Resp struct { Req *http.Request Rec *httptest.ResponseRecorder }
Resp is a http recorder wrapper.
func (*Resp) ExpectBody ¶
ExpectBody provides an assertion against the recorder body.
func (*Resp) ExpectHeader ¶
ExpectHeader asserts that the header is in the recorder.
Click to show internal directories.
Click to hide internal directories.