Test_Listen_ListenerAddrFunc() — fiber Function Reference
Architecture documentation for the Test_Listen_ListenerAddrFunc() function in listen_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD caf9cc07_7d55_5b51_f15d_59f1ae34e0e7["Test_Listen_ListenerAddrFunc()"] edd60c6a_f37d_c392_5301_d2d5a002990a["listen_test.go"] caf9cc07_7d55_5b51_f15d_59f1ae34e0e7 -->|defined in| edd60c6a_f37d_c392_5301_d2d5a002990a style caf9cc07_7d55_5b51_f15d_59f1ae34e0e7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
listen_test.go lines 488–507
func Test_Listen_ListenerAddrFunc(t *testing.T) {
var network string
app := New()
go func() {
time.Sleep(1000 * time.Millisecond)
assert.NoError(t, app.Shutdown())
}()
require.NoError(t, app.Listen(":0", ListenConfig{
DisableStartupMessage: true,
ListenerAddrFunc: func(addr net.Addr) {
network = addr.Network()
},
CertFile: "./.github/testdata/ssl.pem",
CertKeyFile: "./.github/testdata/ssl.key",
}))
require.Equal(t, "tcp", network)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_Listen_ListenerAddrFunc() do?
Test_Listen_ListenerAddrFunc() is a function in the fiber codebase, defined in listen_test.go.
Where is Test_Listen_ListenerAddrFunc() defined?
Test_Listen_ListenerAddrFunc() is defined in listen_test.go at line 488.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free