Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRequest ¶
func NewRequest(query string, options ...*RequestOption) (*http.Request, error)
func NewRequestFromFile ¶
func NewRequestFromFile(filename string, options ...*RequestOption) (*http.Request, error)
Types ¶
type RequestBody ¶
type RequestOption ¶
type ResponseBody ¶
type ResponseBody struct { Errors []interface{} `json:"errors,omitempty"` Data json.RawMessage `json:"data,omitempty"` }
type ResponseRecorder ¶
type ResponseRecorder struct {
*httptest.ResponseRecorder
}
func NewRecorder ¶
func NewRecorder() *ResponseRecorder
func (*ResponseRecorder) ResponseBody ¶
func (r *ResponseRecorder) ResponseBody() (*ResponseBody, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.