Test_App_Chaining() — fiber Function Reference
Architecture documentation for the Test_App_Chaining() function in app_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 14ad94f5_3def_3332_39f0_df338fcfc1a6["Test_App_Chaining()"] e728fdd2_242f_706b_c1d2_041b3d6badb5["app_test.go"] 14ad94f5_3def_3332_39f0_df338fcfc1a6 -->|defined in| e728fdd2_242f_706b_c1d2_041b3d6badb5 style 14ad94f5_3def_3332_39f0_df338fcfc1a6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
app_test.go lines 1056–1083
func Test_App_Chaining(t *testing.T) {
t.Parallel()
n := func(c Ctx) error {
return c.Next()
}
app := New()
app.Use("/john", n, n, n, n, func(c Ctx) error {
return c.SendStatus(202)
})
// check handler count for registered HEAD route
require.Len(t, app.stack[app.methodInt(MethodHead)][0].Handlers, 5, "app.Test(req)")
req := httptest.NewRequest(MethodPost, "/john", http.NoBody)
resp, err := app.Test(req)
require.NoError(t, err, "app.Test(req)")
require.Equal(t, 202, resp.StatusCode, "Status code")
app.Get("/test", n, n, n, n, func(c Ctx) error {
return c.SendStatus(203)
})
req = httptest.NewRequest(MethodGet, "/test", http.NoBody)
resp, err = app.Test(req)
require.NoError(t, err, "app.Test(req)")
require.Equal(t, 203, resp.StatusCode, "Status code")
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_App_Chaining() do?
Test_App_Chaining() is a function in the fiber codebase, defined in app_test.go.
Where is Test_App_Chaining() defined?
Test_App_Chaining() is defined in app_test.go at line 1056.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free