Documentation
¶
Index ¶
- type MockServer
- type MockServer_Expecter
- type MockServer_ServeHTTP_Call
- func (_c *MockServer_ServeHTTP_Call) Return() *MockServer_ServeHTTP_Call
- func (_c *MockServer_ServeHTTP_Call) Run(run func(_a0 http.ResponseWriter, _a1 *http.Request)) *MockServer_ServeHTTP_Call
- func (_c *MockServer_ServeHTTP_Call) RunAndReturn(run func(http.ResponseWriter, *http.Request)) *MockServer_ServeHTTP_Call
- type MockServer_Start_Call
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockServer ¶
MockServer is an autogenerated mock type for the Server type
func NewMockServer ¶
func NewMockServer(t interface {
mock.TestingT
Cleanup(func())
}) *MockServer
NewMockServer creates a new instance of MockServer. 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 (*MockServer) EXPECT ¶
func (_m *MockServer) EXPECT() *MockServer_Expecter
func (*MockServer) ServeHTTP ¶
func (_m *MockServer) ServeHTTP(_a0 http.ResponseWriter, _a1 *http.Request)
ServeHTTP provides a mock function with given fields: _a0, _a1
func (*MockServer) Start ¶
func (_m *MockServer) Start()
Start provides a mock function with no fields
type MockServer_Expecter ¶
type MockServer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockServer_Expecter) ServeHTTP ¶
func (_e *MockServer_Expecter) ServeHTTP(_a0 interface{}, _a1 interface{}) *MockServer_ServeHTTP_Call
ServeHTTP is a helper method to define mock.On call
- _a0 http.ResponseWriter
- _a1 *http.Request
func (*MockServer_Expecter) Start ¶
func (_e *MockServer_Expecter) Start() *MockServer_Start_Call
Start is a helper method to define mock.On call
type MockServer_ServeHTTP_Call ¶
MockServer_ServeHTTP_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServeHTTP'
func (*MockServer_ServeHTTP_Call) Return ¶
func (_c *MockServer_ServeHTTP_Call) Return() *MockServer_ServeHTTP_Call
func (*MockServer_ServeHTTP_Call) Run ¶
func (_c *MockServer_ServeHTTP_Call) Run(run func(_a0 http.ResponseWriter, _a1 *http.Request)) *MockServer_ServeHTTP_Call
func (*MockServer_ServeHTTP_Call) RunAndReturn ¶
func (_c *MockServer_ServeHTTP_Call) RunAndReturn(run func(http.ResponseWriter, *http.Request)) *MockServer_ServeHTTP_Call
type MockServer_Start_Call ¶
MockServer_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*MockServer_Start_Call) Return ¶
func (_c *MockServer_Start_Call) Return() *MockServer_Start_Call
func (*MockServer_Start_Call) Run ¶
func (_c *MockServer_Start_Call) Run(run func()) *MockServer_Start_Call
func (*MockServer_Start_Call) RunAndReturn ¶
func (_c *MockServer_Start_Call) RunAndReturn(run func()) *MockServer_Start_Call