mocks

package
v1.21.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockServer

type MockServer struct {
	mock.Mock
}

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

type MockServer_Listen_Call struct {
	*mock.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 (*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

type MockServer_ShutdownWithTimeout_Call struct {
	*mock.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 (*MockServer_ShutdownWithTimeout_Call) Run

func (*MockServer_ShutdownWithTimeout_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL