Documentation
¶
Index ¶
- type MockServer
- type MockServer_Expecter
- type MockServer_Listen_Call
- func (_c *MockServer_Listen_Call) Return(err error) *MockServer_Listen_Call
- func (_c *MockServer_Listen_Call) Run(run func(addr string, config ...fiber.ListenConfig)) *MockServer_Listen_Call
- func (_c *MockServer_Listen_Call) RunAndReturn(run func(addr string, config ...fiber.ListenConfig) error) *MockServer_Listen_Call
- type MockServer_ShutdownWithTimeout_Call
- func (_c *MockServer_ShutdownWithTimeout_Call) Return(err error) *MockServer_ShutdownWithTimeout_Call
- func (_c *MockServer_ShutdownWithTimeout_Call) Run(run func(timeout time.Duration)) *MockServer_ShutdownWithTimeout_Call
- func (_c *MockServer_ShutdownWithTimeout_Call) RunAndReturn(run func(timeout time.Duration) error) *MockServer_ShutdownWithTimeout_Call
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) Listen ¶
func (_mock *MockServer) Listen(addr string, config ...fiber.ListenConfig) error
Listen provides a mock function for the type MockServer
func (*MockServer) ShutdownWithTimeout ¶
func (_mock *MockServer) ShutdownWithTimeout(timeout time.Duration) error
ShutdownWithTimeout provides a mock function for the type MockServer
type MockServer_Expecter ¶
type MockServer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockServer_Expecter) Listen ¶
func (_e *MockServer_Expecter) Listen(addr any, config ...any) *MockServer_Listen_Call
Listen is a helper method to define mock.On call
- addr string
- config ...fiber.ListenConfig
func (*MockServer_Expecter) ShutdownWithTimeout ¶
func (_e *MockServer_Expecter) ShutdownWithTimeout(timeout any) *MockServer_ShutdownWithTimeout_Call
ShutdownWithTimeout is a helper method to define mock.On call
- timeout time.Duration
type MockServer_Listen_Call ¶
MockServer_Listen_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Listen'
func (*MockServer_Listen_Call) Return ¶
func (_c *MockServer_Listen_Call) Return(err error) *MockServer_Listen_Call
func (*MockServer_Listen_Call) Run ¶
func (_c *MockServer_Listen_Call) Run(run func(addr string, config ...fiber.ListenConfig)) *MockServer_Listen_Call
func (*MockServer_Listen_Call) RunAndReturn ¶
func (_c *MockServer_Listen_Call) RunAndReturn(run func(addr string, config ...fiber.ListenConfig) error) *MockServer_Listen_Call
type MockServer_ShutdownWithTimeout_Call ¶
MockServer_ShutdownWithTimeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShutdownWithTimeout'
func (*MockServer_ShutdownWithTimeout_Call) Return ¶
func (_c *MockServer_ShutdownWithTimeout_Call) Return(err error) *MockServer_ShutdownWithTimeout_Call
func (*MockServer_ShutdownWithTimeout_Call) Run ¶
func (_c *MockServer_ShutdownWithTimeout_Call) Run(run func(timeout time.Duration)) *MockServer_ShutdownWithTimeout_Call
func (*MockServer_ShutdownWithTimeout_Call) RunAndReturn ¶
func (_c *MockServer_ShutdownWithTimeout_Call) RunAndReturn(run func(timeout time.Duration) error) *MockServer_ShutdownWithTimeout_Call