Test_App_Nested_Params() — fiber Function Reference
Architecture documentation for the Test_App_Nested_Params() function in app_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD decc913e_f073_c998_ec5a_f4eef45ba70b["Test_App_Nested_Params()"] e728fdd2_242f_706b_c1d2_041b3d6badb5["app_test.go"] decc913e_f073_c998_ec5a_f4eef45ba70b -->|defined in| e728fdd2_242f_706b_c1d2_041b3d6badb5 style decc913e_f073_c998_ec5a_f4eef45ba70b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
app_test.go lines 715–737
func Test_App_Nested_Params(t *testing.T) {
t.Parallel()
app := New()
app.Get("/test", func(c Ctx) error {
return c.Status(400).Send([]byte("Should move on"))
})
app.Get("/test/:param", func(c Ctx) error {
return c.Status(400).Send([]byte("Should move on"))
})
app.Get("/test/:param/test", func(c Ctx) error {
return c.Status(400).Send([]byte("Should move on"))
})
app.Get("/test/:param/test/:param2", func(c Ctx) error {
return c.Status(200).Send([]byte("Good job"))
})
req := httptest.NewRequest(MethodGet, "/test/john/test/doe", http.NoBody)
resp, err := app.Test(req)
require.NoError(t, err, "app.Test(req)")
require.Equal(t, 200, resp.StatusCode, "Status code")
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_App_Nested_Params() do?
Test_App_Nested_Params() is a function in the fiber codebase, defined in app_test.go.
Where is Test_App_Nested_Params() defined?
Test_App_Nested_Params() is defined in app_test.go at line 715.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free