Test_App_Route() — fiber Function Reference
Architecture documentation for the Test_App_Route() function in app_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 7a6c4ebc_2d5d_3c45_cb64_1e33820fe5db["Test_App_Route()"] e728fdd2_242f_706b_c1d2_041b3d6badb5["app_test.go"] 7a6c4ebc_2d5d_3c45_cb64_1e33820fe5db -->|defined in| e728fdd2_242f_706b_c1d2_041b3d6badb5 5e9aefe0_9814_b69e_a5ef_13ae51bec397["testStatus200()"] 7a6c4ebc_2d5d_3c45_cb64_1e33820fe5db -->|calls| 5e9aefe0_9814_b69e_a5ef_13ae51bec397 style 7a6c4ebc_2d5d_3c45_cb64_1e33820fe5db fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
app_test.go lines 1776–1797
func Test_App_Route(t *testing.T) {
t.Parallel()
app := New()
app.Route("/test", func(api Router) {
api.Get("/foo", testEmptyHandler).Name("foo")
api.Route("/bar", func(bar Router) {
bar.Get("/", testEmptyHandler).Name("index")
}, "bar.")
}, "test.")
testStatus200(t, app, "/test/foo", MethodGet)
resp, err := app.Test(httptest.NewRequest(MethodGet, "/test/bar/", http.NoBody))
require.NoError(t, err, "app.Test(req)")
require.Equal(t, http.StatusOK, resp.StatusCode, "Status code")
require.Equal(t, "/test/foo", app.GetRoute("test.foo").Path)
require.Equal(t, "/test/bar/", app.GetRoute("test.bar.index").Path)
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does Test_App_Route() do?
Test_App_Route() is a function in the fiber codebase, defined in app_test.go.
Where is Test_App_Route() defined?
Test_App_Route() is defined in app_test.go at line 1776.
What does Test_App_Route() call?
Test_App_Route() calls 1 function(s): testStatus200.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free