Documentation ¶
Index ¶
- type ResponseWriter
- func (_m *ResponseWriter) CloseNotify() <-chan bool
- func (_m *ResponseWriter) EXPECT() *ResponseWriter_Expecter
- func (_m *ResponseWriter) Flush()
- func (_m *ResponseWriter) Header() http.Header
- func (_m *ResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error)
- func (_m *ResponseWriter) Pusher() http.Pusher
- func (mock *ResponseWriter) SetupWriteError(err error)
- func (_m *ResponseWriter) Size() int
- func (_m *ResponseWriter) Status() int
- func (_m *ResponseWriter) Write(_a0 []byte) (int, error)
- func (_m *ResponseWriter) WriteHeader(statusCode int)
- func (_m *ResponseWriter) WriteHeaderNow()
- func (_m *ResponseWriter) WriteString(_a0 string) (int, error)
- func (_m *ResponseWriter) Written() bool
- type ResponseWriter_CloseNotify_Call
- func (_c *ResponseWriter_CloseNotify_Call) Return(_a0 <-chan bool) *ResponseWriter_CloseNotify_Call
- func (_c *ResponseWriter_CloseNotify_Call) Run(run func()) *ResponseWriter_CloseNotify_Call
- func (_c *ResponseWriter_CloseNotify_Call) RunAndReturn(run func() <-chan bool) *ResponseWriter_CloseNotify_Call
- type ResponseWriter_Expecter
- func (_e *ResponseWriter_Expecter) CloseNotify() *ResponseWriter_CloseNotify_Call
- func (_e *ResponseWriter_Expecter) Flush() *ResponseWriter_Flush_Call
- func (_e *ResponseWriter_Expecter) Header() *ResponseWriter_Header_Call
- func (_e *ResponseWriter_Expecter) Hijack() *ResponseWriter_Hijack_Call
- func (_e *ResponseWriter_Expecter) Pusher() *ResponseWriter_Pusher_Call
- func (_e *ResponseWriter_Expecter) Size() *ResponseWriter_Size_Call
- func (_e *ResponseWriter_Expecter) Status() *ResponseWriter_Status_Call
- func (_e *ResponseWriter_Expecter) Write(_a0 interface{}) *ResponseWriter_Write_Call
- func (_e *ResponseWriter_Expecter) WriteHeader(statusCode interface{}) *ResponseWriter_WriteHeader_Call
- func (_e *ResponseWriter_Expecter) WriteHeaderNow() *ResponseWriter_WriteHeaderNow_Call
- func (_e *ResponseWriter_Expecter) WriteString(_a0 interface{}) *ResponseWriter_WriteString_Call
- func (_e *ResponseWriter_Expecter) Written() *ResponseWriter_Written_Call
- type ResponseWriter_Flush_Call
- type ResponseWriter_Header_Call
- type ResponseWriter_Hijack_Call
- func (_c *ResponseWriter_Hijack_Call) Return(_a0 net.Conn, _a1 *bufio.ReadWriter, _a2 error) *ResponseWriter_Hijack_Call
- func (_c *ResponseWriter_Hijack_Call) Run(run func()) *ResponseWriter_Hijack_Call
- func (_c *ResponseWriter_Hijack_Call) RunAndReturn(run func() (net.Conn, *bufio.ReadWriter, error)) *ResponseWriter_Hijack_Call
- type ResponseWriter_Pusher_Call
- type ResponseWriter_Size_Call
- type ResponseWriter_Status_Call
- type ResponseWriter_WriteHeaderNow_Call
- type ResponseWriter_WriteHeader_Call
- type ResponseWriter_WriteString_Call
- func (_c *ResponseWriter_WriteString_Call) Return(_a0 int, _a1 error) *ResponseWriter_WriteString_Call
- func (_c *ResponseWriter_WriteString_Call) Run(run func(_a0 string)) *ResponseWriter_WriteString_Call
- func (_c *ResponseWriter_WriteString_Call) RunAndReturn(run func(string) (int, error)) *ResponseWriter_WriteString_Call
- type ResponseWriter_Write_Call
- type ResponseWriter_Written_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResponseWriter ¶
ResponseWriter is an autogenerated mock type for the ResponseWriter type
func CreateResponseWriterMock ¶
func CreateResponseWriterMock(t *testing.T, response *httptest.ResponseRecorder) *ResponseWriter
func NewResponseWriter ¶
func NewResponseWriter(t interface { mock.TestingT Cleanup(func()) }) *ResponseWriter
NewResponseWriter creates a new instance of ResponseWriter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ResponseWriter) CloseNotify ¶
func (_m *ResponseWriter) CloseNotify() <-chan bool
CloseNotify provides a mock function with given fields:
func (*ResponseWriter) EXPECT ¶
func (_m *ResponseWriter) EXPECT() *ResponseWriter_Expecter
func (*ResponseWriter) Flush ¶
func (_m *ResponseWriter) Flush()
Flush provides a mock function with given fields:
func (*ResponseWriter) Header ¶
func (_m *ResponseWriter) Header() http.Header
Header provides a mock function with given fields:
func (*ResponseWriter) Hijack ¶
func (_m *ResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error)
Hijack provides a mock function with given fields:
func (*ResponseWriter) Pusher ¶
func (_m *ResponseWriter) Pusher() http.Pusher
Pusher provides a mock function with given fields:
func (*ResponseWriter) SetupWriteError ¶
func (mock *ResponseWriter) SetupWriteError(err error)
func (*ResponseWriter) Size ¶
func (_m *ResponseWriter) Size() int
Size provides a mock function with given fields:
func (*ResponseWriter) Status ¶
func (_m *ResponseWriter) Status() int
Status provides a mock function with given fields:
func (*ResponseWriter) Write ¶
func (_m *ResponseWriter) Write(_a0 []byte) (int, error)
Write provides a mock function with given fields: _a0
func (*ResponseWriter) WriteHeader ¶
func (_m *ResponseWriter) WriteHeader(statusCode int)
WriteHeader provides a mock function with given fields: statusCode
func (*ResponseWriter) WriteHeaderNow ¶
func (_m *ResponseWriter) WriteHeaderNow()
WriteHeaderNow provides a mock function with given fields:
func (*ResponseWriter) WriteString ¶
func (_m *ResponseWriter) WriteString(_a0 string) (int, error)
WriteString provides a mock function with given fields: _a0
func (*ResponseWriter) Written ¶
func (_m *ResponseWriter) Written() bool
Written provides a mock function with given fields:
type ResponseWriter_CloseNotify_Call ¶
ResponseWriter_CloseNotify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CloseNotify'
func (*ResponseWriter_CloseNotify_Call) Return ¶
func (_c *ResponseWriter_CloseNotify_Call) Return(_a0 <-chan bool) *ResponseWriter_CloseNotify_Call
func (*ResponseWriter_CloseNotify_Call) Run ¶
func (_c *ResponseWriter_CloseNotify_Call) Run(run func()) *ResponseWriter_CloseNotify_Call
func (*ResponseWriter_CloseNotify_Call) RunAndReturn ¶
func (_c *ResponseWriter_CloseNotify_Call) RunAndReturn(run func() <-chan bool) *ResponseWriter_CloseNotify_Call
type ResponseWriter_Expecter ¶
type ResponseWriter_Expecter struct {
// contains filtered or unexported fields
}
func (*ResponseWriter_Expecter) CloseNotify ¶
func (_e *ResponseWriter_Expecter) CloseNotify() *ResponseWriter_CloseNotify_Call
CloseNotify is a helper method to define mock.On call
func (*ResponseWriter_Expecter) Flush ¶
func (_e *ResponseWriter_Expecter) Flush() *ResponseWriter_Flush_Call
Flush is a helper method to define mock.On call
func (*ResponseWriter_Expecter) Header ¶
func (_e *ResponseWriter_Expecter) Header() *ResponseWriter_Header_Call
Header is a helper method to define mock.On call
func (*ResponseWriter_Expecter) Hijack ¶
func (_e *ResponseWriter_Expecter) Hijack() *ResponseWriter_Hijack_Call
Hijack is a helper method to define mock.On call
func (*ResponseWriter_Expecter) Pusher ¶
func (_e *ResponseWriter_Expecter) Pusher() *ResponseWriter_Pusher_Call
Pusher is a helper method to define mock.On call
func (*ResponseWriter_Expecter) Size ¶
func (_e *ResponseWriter_Expecter) Size() *ResponseWriter_Size_Call
Size is a helper method to define mock.On call
func (*ResponseWriter_Expecter) Status ¶
func (_e *ResponseWriter_Expecter) Status() *ResponseWriter_Status_Call
Status is a helper method to define mock.On call
func (*ResponseWriter_Expecter) Write ¶
func (_e *ResponseWriter_Expecter) Write(_a0 interface{}) *ResponseWriter_Write_Call
Write is a helper method to define mock.On call
- _a0 []byte
func (*ResponseWriter_Expecter) WriteHeader ¶
func (_e *ResponseWriter_Expecter) WriteHeader(statusCode interface{}) *ResponseWriter_WriteHeader_Call
WriteHeader is a helper method to define mock.On call
- statusCode int
func (*ResponseWriter_Expecter) WriteHeaderNow ¶
func (_e *ResponseWriter_Expecter) WriteHeaderNow() *ResponseWriter_WriteHeaderNow_Call
WriteHeaderNow is a helper method to define mock.On call
func (*ResponseWriter_Expecter) WriteString ¶
func (_e *ResponseWriter_Expecter) WriteString(_a0 interface{}) *ResponseWriter_WriteString_Call
WriteString is a helper method to define mock.On call
- _a0 string
func (*ResponseWriter_Expecter) Written ¶
func (_e *ResponseWriter_Expecter) Written() *ResponseWriter_Written_Call
Written is a helper method to define mock.On call
type ResponseWriter_Flush_Call ¶
ResponseWriter_Flush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Flush'
func (*ResponseWriter_Flush_Call) Return ¶
func (_c *ResponseWriter_Flush_Call) Return() *ResponseWriter_Flush_Call
func (*ResponseWriter_Flush_Call) Run ¶
func (_c *ResponseWriter_Flush_Call) Run(run func()) *ResponseWriter_Flush_Call
func (*ResponseWriter_Flush_Call) RunAndReturn ¶
func (_c *ResponseWriter_Flush_Call) RunAndReturn(run func()) *ResponseWriter_Flush_Call
type ResponseWriter_Header_Call ¶
ResponseWriter_Header_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Header'
func (*ResponseWriter_Header_Call) Return ¶
func (_c *ResponseWriter_Header_Call) Return(_a0 http.Header) *ResponseWriter_Header_Call
func (*ResponseWriter_Header_Call) Run ¶
func (_c *ResponseWriter_Header_Call) Run(run func()) *ResponseWriter_Header_Call
func (*ResponseWriter_Header_Call) RunAndReturn ¶
func (_c *ResponseWriter_Header_Call) RunAndReturn(run func() http.Header) *ResponseWriter_Header_Call
type ResponseWriter_Hijack_Call ¶
ResponseWriter_Hijack_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hijack'
func (*ResponseWriter_Hijack_Call) Return ¶
func (_c *ResponseWriter_Hijack_Call) Return(_a0 net.Conn, _a1 *bufio.ReadWriter, _a2 error) *ResponseWriter_Hijack_Call
func (*ResponseWriter_Hijack_Call) Run ¶
func (_c *ResponseWriter_Hijack_Call) Run(run func()) *ResponseWriter_Hijack_Call
func (*ResponseWriter_Hijack_Call) RunAndReturn ¶
func (_c *ResponseWriter_Hijack_Call) RunAndReturn(run func() (net.Conn, *bufio.ReadWriter, error)) *ResponseWriter_Hijack_Call
type ResponseWriter_Pusher_Call ¶
ResponseWriter_Pusher_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Pusher'
func (*ResponseWriter_Pusher_Call) Return ¶
func (_c *ResponseWriter_Pusher_Call) Return(_a0 http.Pusher) *ResponseWriter_Pusher_Call
func (*ResponseWriter_Pusher_Call) Run ¶
func (_c *ResponseWriter_Pusher_Call) Run(run func()) *ResponseWriter_Pusher_Call
func (*ResponseWriter_Pusher_Call) RunAndReturn ¶
func (_c *ResponseWriter_Pusher_Call) RunAndReturn(run func() http.Pusher) *ResponseWriter_Pusher_Call
type ResponseWriter_Size_Call ¶
ResponseWriter_Size_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Size'
func (*ResponseWriter_Size_Call) Return ¶
func (_c *ResponseWriter_Size_Call) Return(_a0 int) *ResponseWriter_Size_Call
func (*ResponseWriter_Size_Call) Run ¶
func (_c *ResponseWriter_Size_Call) Run(run func()) *ResponseWriter_Size_Call
func (*ResponseWriter_Size_Call) RunAndReturn ¶
func (_c *ResponseWriter_Size_Call) RunAndReturn(run func() int) *ResponseWriter_Size_Call
type ResponseWriter_Status_Call ¶
ResponseWriter_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*ResponseWriter_Status_Call) Return ¶
func (_c *ResponseWriter_Status_Call) Return(_a0 int) *ResponseWriter_Status_Call
func (*ResponseWriter_Status_Call) Run ¶
func (_c *ResponseWriter_Status_Call) Run(run func()) *ResponseWriter_Status_Call
func (*ResponseWriter_Status_Call) RunAndReturn ¶
func (_c *ResponseWriter_Status_Call) RunAndReturn(run func() int) *ResponseWriter_Status_Call
type ResponseWriter_WriteHeaderNow_Call ¶
ResponseWriter_WriteHeaderNow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteHeaderNow'
func (*ResponseWriter_WriteHeaderNow_Call) Return ¶
func (_c *ResponseWriter_WriteHeaderNow_Call) Return() *ResponseWriter_WriteHeaderNow_Call
func (*ResponseWriter_WriteHeaderNow_Call) Run ¶
func (_c *ResponseWriter_WriteHeaderNow_Call) Run(run func()) *ResponseWriter_WriteHeaderNow_Call
func (*ResponseWriter_WriteHeaderNow_Call) RunAndReturn ¶
func (_c *ResponseWriter_WriteHeaderNow_Call) RunAndReturn(run func()) *ResponseWriter_WriteHeaderNow_Call
type ResponseWriter_WriteHeader_Call ¶
ResponseWriter_WriteHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteHeader'
func (*ResponseWriter_WriteHeader_Call) Return ¶
func (_c *ResponseWriter_WriteHeader_Call) Return() *ResponseWriter_WriteHeader_Call
func (*ResponseWriter_WriteHeader_Call) Run ¶
func (_c *ResponseWriter_WriteHeader_Call) Run(run func(statusCode int)) *ResponseWriter_WriteHeader_Call
func (*ResponseWriter_WriteHeader_Call) RunAndReturn ¶
func (_c *ResponseWriter_WriteHeader_Call) RunAndReturn(run func(int)) *ResponseWriter_WriteHeader_Call
type ResponseWriter_WriteString_Call ¶
ResponseWriter_WriteString_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteString'
func (*ResponseWriter_WriteString_Call) Return ¶
func (_c *ResponseWriter_WriteString_Call) Return(_a0 int, _a1 error) *ResponseWriter_WriteString_Call
func (*ResponseWriter_WriteString_Call) Run ¶
func (_c *ResponseWriter_WriteString_Call) Run(run func(_a0 string)) *ResponseWriter_WriteString_Call
func (*ResponseWriter_WriteString_Call) RunAndReturn ¶
func (_c *ResponseWriter_WriteString_Call) RunAndReturn(run func(string) (int, error)) *ResponseWriter_WriteString_Call
type ResponseWriter_Write_Call ¶
ResponseWriter_Write_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Write'
func (*ResponseWriter_Write_Call) Return ¶
func (_c *ResponseWriter_Write_Call) Return(_a0 int, _a1 error) *ResponseWriter_Write_Call
func (*ResponseWriter_Write_Call) Run ¶
func (_c *ResponseWriter_Write_Call) Run(run func(_a0 []byte)) *ResponseWriter_Write_Call
func (*ResponseWriter_Write_Call) RunAndReturn ¶
func (_c *ResponseWriter_Write_Call) RunAndReturn(run func([]byte) (int, error)) *ResponseWriter_Write_Call
type ResponseWriter_Written_Call ¶
ResponseWriter_Written_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Written'
func (*ResponseWriter_Written_Call) Return ¶
func (_c *ResponseWriter_Written_Call) Return(_a0 bool) *ResponseWriter_Written_Call
func (*ResponseWriter_Written_Call) Run ¶
func (_c *ResponseWriter_Written_Call) Run(run func()) *ResponseWriter_Written_Call
func (*ResponseWriter_Written_Call) RunAndReturn ¶
func (_c *ResponseWriter_Written_Call) RunAndReturn(run func() bool) *ResponseWriter_Written_Call