Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerMock ¶
ServerMock is an autogenerated mock type for the Server type
func NewServerMock ¶
func NewServerMock(t mockConstructorTestingTNewServerMock) *ServerMock
NewServerMock creates a new instance of ServerMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ServerMock) EXPECT ¶
func (_m *ServerMock) EXPECT() *ServerMock_Expecter
type ServerMock_Expecter ¶
type ServerMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ServerMock_Expecter) Serve ¶
func (_e *ServerMock_Expecter) Serve(l interface{}) *ServerMock_Serve_Call
Serve is a helper method to define mock.On call
- l net.Listener
func (*ServerMock_Expecter) Shutdown ¶
func (_e *ServerMock_Expecter) Shutdown(ctx interface{}) *ServerMock_Shutdown_Call
Shutdown is a helper method to define mock.On call
- ctx context.Context
type ServerMock_Serve_Call ¶
ServerMock_Serve_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Serve'
func (*ServerMock_Serve_Call) Return ¶
func (_c *ServerMock_Serve_Call) Return(_a0 error) *ServerMock_Serve_Call
func (*ServerMock_Serve_Call) Run ¶
func (_c *ServerMock_Serve_Call) Run(run func(l net.Listener)) *ServerMock_Serve_Call
func (*ServerMock_Serve_Call) RunAndReturn ¶
func (_c *ServerMock_Serve_Call) RunAndReturn(run func(net.Listener) error) *ServerMock_Serve_Call
type ServerMock_Shutdown_Call ¶
ServerMock_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'
func (*ServerMock_Shutdown_Call) Return ¶
func (_c *ServerMock_Shutdown_Call) Return(_a0 error) *ServerMock_Shutdown_Call
func (*ServerMock_Shutdown_Call) Run ¶
func (_c *ServerMock_Shutdown_Call) Run(run func(ctx context.Context)) *ServerMock_Shutdown_Call
func (*ServerMock_Shutdown_Call) RunAndReturn ¶
func (_c *ServerMock_Shutdown_Call) RunAndReturn(run func(context.Context) error) *ServerMock_Shutdown_Call
Click to show internal directories.
Click to hide internal directories.