Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRequest ¶
Types ¶
type EncodeJsonOutput ¶
type ResponseWriter ¶
type ResponseWriter struct { *test.Mock HeaderImpl http.Header WriteJsonInvocations int WriteJsonInputs []interface{} WriteJsonOutputs []error EncodeJsonInvocations int EncodeJsonInputs []interface{} EncodeJsonOutputs []EncodeJsonOutput WriteHeaderInvocations int WriteHeaderInputs []int }
func NewResponseWriter ¶
func NewResponseWriter() *ResponseWriter
func (*ResponseWriter) EncodeJson ¶
func (r *ResponseWriter) EncodeJson(object interface{}) ([]byte, error)
func (*ResponseWriter) Expectations ¶
func (r *ResponseWriter) Expectations()
func (*ResponseWriter) Header ¶
func (r *ResponseWriter) Header() http.Header
func (*ResponseWriter) WriteHeader ¶
func (r *ResponseWriter) WriteHeader(code int)
func (*ResponseWriter) WriteJson ¶
func (r *ResponseWriter) WriteJson(object interface{}) error
Click to show internal directories.
Click to hide internal directories.