MCPcopy
hub / github.com/gofiber/fiber / startServer

Function startServer

middleware/proxy/proxy_test.go:22–31  ·  view source on GitHub ↗
(app *fiber.App, ln net.Listener)

Source from the content-addressed store, hash-verified

20)
21
22func startServer(app *fiber.App, ln net.Listener) {
23 go func() {
24 err := app.Listener(ln, fiber.ListenConfig{
25 DisableStartupMessage: true,
26 })
27 if err != nil {
28 panic(err)
29 }
30 }()
31}
32
33func createProxyTestServer(t *testing.T, handler fiber.Handler, network, address string) (target *fiber.App, addr string) { //nolint:nonamedreturns // gocritic unnamedResult prefers naming returned target app and address for readability
34 t.Helper()

Calls 1

ListenerMethod · 0.80

Tested by

no test coverage detected