TestClientUnderlyingTransports() — fiber Function Reference
Architecture documentation for the TestClientUnderlyingTransports() function in client_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD b04aa450_b574_f3c0_9797_3247f1651d3d["TestClientUnderlyingTransports()"] 5d11d0f7_2b3b_7bf3_3b1d_76d79d6872a2["client_test.go"] b04aa450_b574_f3c0_9797_3247f1651d3d -->|defined in| 5d11d0f7_2b3b_7bf3_3b1d_76d79d6872a2 style b04aa450_b574_f3c0_9797_3247f1651d3d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
client/client_test.go lines 137–156
func TestClientUnderlyingTransports(t *testing.T) {
t.Parallel()
std := New()
require.NotNil(t, std.FasthttpClient())
require.Nil(t, std.HostClient())
require.Nil(t, std.LBClient())
hostTransport := &fasthttp.HostClient{Addr: "example.com:80"}
host := NewWithHostClient(hostTransport)
require.Nil(t, host.FasthttpClient())
require.Same(t, hostTransport, host.HostClient())
require.Nil(t, host.LBClient())
lbClient := &fasthttp.LBClient{Clients: []fasthttp.BalancingClient{hostTransport}}
lb := NewWithLBClient(lbClient)
require.Nil(t, lb.FasthttpClient())
require.Nil(t, lb.HostClient())
require.Same(t, lbClient, lb.LBClient())
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does TestClientUnderlyingTransports() do?
TestClientUnderlyingTransports() is a function in the fiber codebase, defined in client/client_test.go.
Where is TestClientUnderlyingTransports() defined?
TestClientUnderlyingTransports() is defined in client/client_test.go at line 137.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free