Test_App_Mount_Nested() — fiber Function Reference
Architecture documentation for the Test_App_Mount_Nested() function in mount_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 77f6d966_c795_2f53_a340_26be132c217b["Test_App_Mount_Nested()"] dbd7cc10_1955_3f67_b103_5ae841223af0["mount_test.go"] 77f6d966_c795_2f53_a340_26be132c217b -->|defined in| dbd7cc10_1955_3f67_b103_5ae841223af0 style 77f6d966_c795_2f53_a340_26be132c217b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
mount_test.go lines 54–90
func Test_App_Mount_Nested(t *testing.T) {
t.Parallel()
app := New()
one := New()
two := New()
three := New()
two.Use("/three", three)
app.Use("/one", one)
one.Use("/two", two)
one.Get("/doe", func(c Ctx) error {
return c.SendStatus(StatusOK)
})
two.Get("/nested", func(c Ctx) error {
return c.SendStatus(StatusOK)
})
three.Get("/test", func(c Ctx) error {
return c.SendStatus(StatusOK)
})
resp, err := app.Test(httptest.NewRequest(MethodGet, "/one/doe", http.NoBody))
require.NoError(t, err, "app.Test(req)")
require.Equal(t, 200, resp.StatusCode, "Status code")
resp, err = app.Test(httptest.NewRequest(MethodGet, "/one/two/nested", http.NoBody))
require.NoError(t, err, "app.Test(req)")
require.Equal(t, 200, resp.StatusCode, "Status code")
resp, err = app.Test(httptest.NewRequest(MethodGet, "/one/two/three/test", http.NoBody))
require.NoError(t, err, "app.Test(req)")
require.Equal(t, 200, resp.StatusCode, "Status code")
require.Equal(t, uint32(6), app.handlersCount)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_App_Mount_Nested() do?
Test_App_Mount_Nested() is a function in the fiber codebase, defined in mount_test.go.
Where is Test_App_Mount_Nested() defined?
Test_App_Mount_Nested() is defined in mount_test.go at line 54.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free