Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClosableRecorder ¶
type ClosableRecorder struct { *httptest.ResponseRecorder // contains filtered or unexported fields }
func NewClosableRecorder ¶
func NewClosableRecorder() *ClosableRecorder
func (*ClosableRecorder) CloseNotify ¶
func (r *ClosableRecorder) CloseNotify() <-chan bool
type URLTest ¶
type URLTest struct { Desc string /* Description of the test (primarily for grepping to be able to find it) */ Method string /* Request Method: GET, POST, HEAD, PUT, etc */ Path string /* Request Path: The path of the request */ Username string /* Request Username: as who should the request run? */ Header http.Header /* Request Headers */ BodyVals url.Values /* Request Body Values Body of the request (or nil) */ RC int /* Response: Expected HTTP return code (or 0 to ignore this check) */ Positive []string /* Response: Expected Regexps that must be present in the body */ Negative []string /* Response: Expected Regexps that must NOT be present in the body */ }
func URLTest_404 ¶
Click to show internal directories.
Click to hide internal directories.