Test_Proxy_Next() — fiber Function Reference
Architecture documentation for the Test_Proxy_Next() function in proxy_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD a80d26c6_264c_d3c0_c386_4702e464b7f0["Test_Proxy_Next()"] a7c70172_e40a_6ad6_65b6_b8f508cfb0a2["proxy_test.go"] a80d26c6_264c_d3c0_c386_4702e464b7f0 -->|defined in| a7c70172_e40a_6ad6_65b6_b8f508cfb0a2 style a80d26c6_264c_d3c0_c386_4702e464b7f0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
middleware/proxy/proxy_test.go lines 115–129
func Test_Proxy_Next(t *testing.T) {
t.Parallel()
app := fiber.New()
app.Use(Balancer(Config{
Servers: []string{"127.0.0.1"},
Next: func(_ fiber.Ctx) bool {
return true
},
}))
resp, err := app.Test(httptest.NewRequest(fiber.MethodGet, "/", http.NoBody))
require.NoError(t, err)
require.Equal(t, fiber.StatusNotFound, resp.StatusCode)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_Proxy_Next() do?
Test_Proxy_Next() is a function in the fiber codebase, defined in middleware/proxy/proxy_test.go.
Where is Test_Proxy_Next() defined?
Test_Proxy_Next() is defined in middleware/proxy/proxy_test.go at line 115.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free