Test_Group_RouteChain_All() — fiber Function Reference
Architecture documentation for the Test_Group_RouteChain_All() function in app_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 687335b5_5431_fd6a_6422_e3624e36bc48["Test_Group_RouteChain_All()"] e728fdd2_242f_706b_c1d2_041b3d6badb5["app_test.go"] 687335b5_5431_fd6a_6422_e3624e36bc48 -->|defined in| e728fdd2_242f_706b_c1d2_041b3d6badb5 style 687335b5_5431_fd6a_6422_e3624e36bc48 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
app_test.go lines 1820–1839
func Test_Group_RouteChain_All(t *testing.T) {
t.Parallel()
app := New()
var calls []string
grp := app.Group("/api", func(c Ctx) error {
calls = append(calls, "group")
return c.Next()
})
grp.RouteChain("/users").All(func(c Ctx) error {
calls = append(calls, "routechain")
return c.SendStatus(http.StatusOK)
})
resp, err := app.Test(httptest.NewRequest(MethodGet, "/api/users", http.NoBody))
require.NoError(t, err, "app.Test(req)")
require.Equal(t, http.StatusOK, resp.StatusCode, "Status code")
require.Equal(t, []string{"group", "routechain"}, calls)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_Group_RouteChain_All() do?
Test_Group_RouteChain_All() is a function in the fiber codebase, defined in app_test.go.
Where is Test_Group_RouteChain_All() defined?
Test_Group_RouteChain_All() is defined in app_test.go at line 1820.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free