Home / Function/ Test_Listen_TLS() — fiber Function Reference

Test_Listen_TLS() — fiber Function Reference

Architecture documentation for the Test_Listen_TLS() function in listen_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  55618589_a10c_1a52_1283_0b3a4243186c["Test_Listen_TLS()"]
  edd60c6a_f37d_c392_5301_d2d5a002990a["listen_test.go"]
  55618589_a10c_1a52_1283_0b3a4243186c -->|defined in| edd60c6a_f37d_c392_5301_d2d5a002990a
  style 55618589_a10c_1a52_1283_0b3a4243186c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

listen_test.go lines 213–231

func Test_Listen_TLS(t *testing.T) {
	app := New()

	// invalid port
	require.Error(t, app.Listen(":99999", ListenConfig{
		CertFile:    "./.github/testdata/ssl.pem",
		CertKeyFile: "./.github/testdata/ssl.key",
	}))

	go func() {
		time.Sleep(1000 * time.Millisecond)
		assert.NoError(t, app.Shutdown())
	}()

	require.NoError(t, app.Listen(":0", ListenConfig{
		CertFile:    "./.github/testdata/ssl.pem",
		CertKeyFile: "./.github/testdata/ssl.key",
	}))
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does Test_Listen_TLS() do?
Test_Listen_TLS() is a function in the fiber codebase, defined in listen_test.go.
Where is Test_Listen_TLS() defined?
Test_Listen_TLS() is defined in listen_test.go at line 213.

Analyze Your Own Codebase

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

Try Supermodel Free