Documentation ¶
Index ¶
- type ErrorHandlerMock
- type ErrorHandlerMock_Expecter
- type ErrorHandlerMock_HandleError_Call
- func (_c *ErrorHandlerMock_HandleError_Call) Return() *ErrorHandlerMock_HandleError_Call
- func (_c *ErrorHandlerMock_HandleError_Call) Run(run func(rw http.ResponseWriter, req *http.Request, err error)) *ErrorHandlerMock_HandleError_Call
- func (_c *ErrorHandlerMock_HandleError_Call) RunAndReturn(run func(http.ResponseWriter, *http.Request, error)) *ErrorHandlerMock_HandleError_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorHandlerMock ¶
ErrorHandlerMock is an autogenerated mock type for the ErrorHandler type
func NewErrorHandlerMock ¶
func NewErrorHandlerMock(t mockConstructorTestingTNewErrorHandlerMock) *ErrorHandlerMock
NewErrorHandlerMock creates a new instance of ErrorHandlerMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ErrorHandlerMock) EXPECT ¶
func (_m *ErrorHandlerMock) EXPECT() *ErrorHandlerMock_Expecter
func (*ErrorHandlerMock) HandleError ¶
func (_m *ErrorHandlerMock) HandleError(rw http.ResponseWriter, req *http.Request, err error)
HandleError provides a mock function with given fields: rw, req, err
type ErrorHandlerMock_Expecter ¶
type ErrorHandlerMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ErrorHandlerMock_Expecter) HandleError ¶
func (_e *ErrorHandlerMock_Expecter) HandleError(rw interface{}, req interface{}, err interface{}) *ErrorHandlerMock_HandleError_Call
HandleError is a helper method to define mock.On call
- rw http.ResponseWriter
- req *http.Request
- err error
type ErrorHandlerMock_HandleError_Call ¶
ErrorHandlerMock_HandleError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleError'
func (*ErrorHandlerMock_HandleError_Call) Return ¶
func (_c *ErrorHandlerMock_HandleError_Call) Return() *ErrorHandlerMock_HandleError_Call
func (*ErrorHandlerMock_HandleError_Call) Run ¶
func (_c *ErrorHandlerMock_HandleError_Call) Run(run func(rw http.ResponseWriter, req *http.Request, err error)) *ErrorHandlerMock_HandleError_Call
func (*ErrorHandlerMock_HandleError_Call) RunAndReturn ¶
func (_c *ErrorHandlerMock_HandleError_Call) RunAndReturn(run func(http.ResponseWriter, *http.Request, error)) *ErrorHandlerMock_HandleError_Call
Click to show internal directories.
Click to hide internal directories.