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