TestWalkBalancingClientWithBreak() — fiber Function Reference
Architecture documentation for the TestWalkBalancingClientWithBreak() function in transport_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 21d287af_85cf_072d_8bcc_2a26816ee133["TestWalkBalancingClientWithBreak()"] b137f470_30b5_d002_b6e6_5173073c07e3["transport_test.go"] 21d287af_85cf_072d_8bcc_2a26816ee133 -->|defined in| b137f470_30b5_d002_b6e6_5173073c07e3 style 21d287af_85cf_072d_8bcc_2a26816ee133 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
client/transport_test.go lines 230–251
func TestWalkBalancingClientWithBreak(t *testing.T) {
t.Parallel()
host := &fasthttp.HostClient{}
require.True(t, walkBalancingClientWithBreak(host, func(*fasthttp.HostClient) bool { return true }))
require.False(t, walkBalancingClientWithBreak(stubBalancingClient{}, func(*fasthttp.HostClient) bool {
t.Fatal("unexpected call")
return false
}))
nested := &fasthttp.HostClient{}
nestedLB := &lbBalancingClient{client: &fasthttp.LBClient{Clients: []fasthttp.BalancingClient{nested}}}
require.True(t, walkBalancingClientWithBreak(nestedLB, func(*fasthttp.HostClient) bool { return true }))
directNestedHost := &fasthttp.HostClient{}
directNestedLB := &fasthttp.LBClient{Clients: []fasthttp.BalancingClient{directNestedHost}}
require.True(t, walkBalancingClientWithBreak(directNestedLB, func(hc *fasthttp.HostClient) bool {
require.Same(t, directNestedHost, hc)
return true
}))
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does TestWalkBalancingClientWithBreak() do?
TestWalkBalancingClientWithBreak() is a function in the fiber codebase, defined in client/transport_test.go.
Where is TestWalkBalancingClientWithBreak() defined?
TestWalkBalancingClientWithBreak() is defined in client/transport_test.go at line 230.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free