Test_App_Group() — fiber Function Reference
Architecture documentation for the Test_App_Group() function in app_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD eae4a5d8_88da_0b24_6072_320e0d56b475["Test_App_Group()"] e728fdd2_242f_706b_c1d2_041b3d6badb5["app_test.go"] eae4a5d8_88da_0b24_6072_320e0d56b475 -->|defined in| e728fdd2_242f_706b_c1d2_041b3d6badb5 5e9aefe0_9814_b69e_a5ef_13ae51bec397["testStatus200()"] eae4a5d8_88da_0b24_6072_320e0d56b475 -->|calls| 5e9aefe0_9814_b69e_a5ef_13ae51bec397 style eae4a5d8_88da_0b24_6072_320e0d56b475 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
app_test.go lines 1669–1726
func Test_App_Group(t *testing.T) {
t.Parallel()
dummyHandler := testEmptyHandler
app := New()
grp := app.Group("/test")
grp.Get("/", dummyHandler)
testStatus200(t, app, "/test", MethodGet)
grp.Get("/:demo?", dummyHandler)
testStatus200(t, app, "/test/john", MethodGet)
grp.Connect("/CONNECT", dummyHandler)
testStatus200(t, app, "/test/CONNECT", MethodConnect)
grp.Put("/PUT", dummyHandler)
testStatus200(t, app, "/test/PUT", MethodPut)
grp.Post("/POST", dummyHandler)
testStatus200(t, app, "/test/POST", MethodPost)
grp.Delete("/DELETE", dummyHandler)
testStatus200(t, app, "/test/DELETE", MethodDelete)
grp.Head("/HEAD", dummyHandler)
testStatus200(t, app, "/test/HEAD", MethodHead)
grp.Patch("/PATCH", dummyHandler)
testStatus200(t, app, "/test/PATCH", MethodPatch)
grp.Options("/OPTIONS", dummyHandler)
testStatus200(t, app, "/test/OPTIONS", MethodOptions)
grp.Trace("/TRACE", dummyHandler)
testStatus200(t, app, "/test/TRACE", MethodTrace)
grp.All("/ALL", dummyHandler)
testStatus200(t, app, "/test/ALL", MethodPost)
grp.Use(dummyHandler)
testStatus200(t, app, "/test/oke", MethodGet)
grp.Use("/USE", dummyHandler)
testStatus200(t, app, "/test/USE/oke", MethodGet)
api := grp.Group("/v1")
api.Post("/", dummyHandler)
resp, err := app.Test(httptest.NewRequest(MethodPost, "/test/v1/", http.NoBody))
require.NoError(t, err, "app.Test(req)")
require.Equal(t, 200, resp.StatusCode, "Status code")
api.Get("/users", dummyHandler)
resp, err = app.Test(httptest.NewRequest(MethodGet, "/test/v1/UsErS", http.NoBody))
require.NoError(t, err, "app.Test(req)")
require.Equal(t, 200, resp.StatusCode, "Status code")
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does Test_App_Group() do?
Test_App_Group() is a function in the fiber codebase, defined in app_test.go.
Where is Test_App_Group() defined?
Test_App_Group() is defined in app_test.go at line 1669.
What does Test_App_Group() call?
Test_App_Group() 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