Home / Function/ createHelperServer() — fiber Function Reference

createHelperServer() — fiber Function Reference

Architecture documentation for the createHelperServer() function in helper_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  4f71862c_f3dd_6c80_0b85_91199487def3["createHelperServer()"]
  0a463cba_a8ce_ebd2_d862_50fbe27b1d9f["helper_test.go"]
  4f71862c_f3dd_6c80_0b85_91199487def3 -->|defined in| 0a463cba_a8ce_ebd2_d862_50fbe27b1d9f
  e088f968_0f96_0949_b18a_ac2051e0f680["testRequest()"]
  e088f968_0f96_0949_b18a_ac2051e0f680 -->|calls| 4f71862c_f3dd_6c80_0b85_91199487def3
  f1b05e3b_0c2c_2e95_db4c_d6b22f67b926["testRequestFail()"]
  f1b05e3b_0c2c_2e95_db4c_d6b22f67b926 -->|calls| 4f71862c_f3dd_6c80_0b85_91199487def3
  fccf57ba_1e45_4bf5_b9bc_c6250e05420a["testClient()"]
  fccf57ba_1e45_4bf5_b9bc_c6250e05420a -->|calls| 4f71862c_f3dd_6c80_0b85_91199487def3
  style 4f71862c_f3dd_6c80_0b85_91199487def3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

client/helper_test.go lines 73–88

func createHelperServer(tb testing.TB) (app *fiber.App, dial func(addr string) (net.Conn, error), start func()) { //nolint:nonamedreturns // gocritic unnamedResult requires explicit result identifiers for helper components
	tb.Helper()

	ln := fasthttputil.NewInmemoryListener()

	app = fiber.New()

	dial = func(_ string) (net.Conn, error) {
		return ln.Dial()
	}
	start = func() {
		require.NoError(tb, app.Listener(ln, fiber.ListenConfig{DisableStartupMessage: true}))
	}

	return app, dial, start
}

Domain

Subdomains

Frequently Asked Questions

What does createHelperServer() do?
createHelperServer() is a function in the fiber codebase, defined in client/helper_test.go.
Where is createHelperServer() defined?
createHelperServer() is defined in client/helper_test.go at line 73.
What calls createHelperServer()?
createHelperServer() is called by 3 function(s): testClient, testRequest, testRequestFail.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free