Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockhttpServer ¶
MockhttpServer is an autogenerated mock type for the httpServer type
func NewMockhttpServer ¶
func NewMockhttpServer(t interface { mock.TestingT Cleanup(func()) }) *MockhttpServer
NewMockhttpServer creates a new instance of MockhttpServer. 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 (*MockhttpServer) Close ¶
func (_m *MockhttpServer) Close() error
Close provides a mock function with no fields
func (*MockhttpServer) EXPECT ¶
func (_m *MockhttpServer) EXPECT() *MockhttpServer_Expecter
type MockhttpServer_Close_Call ¶
MockhttpServer_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockhttpServer_Close_Call) Return ¶
func (_c *MockhttpServer_Close_Call) Return(_a0 error) *MockhttpServer_Close_Call
func (*MockhttpServer_Close_Call) Run ¶
func (_c *MockhttpServer_Close_Call) Run(run func()) *MockhttpServer_Close_Call
func (*MockhttpServer_Close_Call) RunAndReturn ¶
func (_c *MockhttpServer_Close_Call) RunAndReturn(run func() error) *MockhttpServer_Close_Call
type MockhttpServer_Expecter ¶
type MockhttpServer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockhttpServer_Expecter) Close ¶
func (_e *MockhttpServer_Expecter) Close() *MockhttpServer_Close_Call
Close is a helper method to define mock.On call
func (*MockhttpServer_Expecter) Serve ¶
func (_e *MockhttpServer_Expecter) Serve(l interface{}) *MockhttpServer_Serve_Call
Serve is a helper method to define mock.On call
- l net.Listener
type MockhttpServer_Serve_Call ¶
MockhttpServer_Serve_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Serve'
func (*MockhttpServer_Serve_Call) Return ¶
func (_c *MockhttpServer_Serve_Call) Return(_a0 error) *MockhttpServer_Serve_Call
func (*MockhttpServer_Serve_Call) Run ¶
func (_c *MockhttpServer_Serve_Call) Run(run func(l net.Listener)) *MockhttpServer_Serve_Call
func (*MockhttpServer_Serve_Call) RunAndReturn ¶
func (_c *MockhttpServer_Serve_Call) RunAndReturn(run func(net.Listener) error) *MockhttpServer_Serve_Call