Test_App_GETOnly() — fiber Function Reference
Architecture documentation for the Test_App_GETOnly() function in app_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD ffb2c8a5_0d7d_a3a1_eea4_643ab89bf6ba["Test_App_GETOnly()"] e728fdd2_242f_706b_c1d2_041b3d6badb5["app_test.go"] ffb2c8a5_0d7d_a3a1_eea4_643ab89bf6ba -->|defined in| e728fdd2_242f_706b_c1d2_041b3d6badb5 style ffb2c8a5_0d7d_a3a1_eea4_643ab89bf6ba fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
app_test.go lines 1021–1035
func Test_App_GETOnly(t *testing.T) {
t.Parallel()
app := New(Config{
GETOnly: true,
})
app.Post("/", func(c Ctx) error {
return c.SendString("Hello 👋!")
})
req := httptest.NewRequest(MethodPost, "/", http.NoBody)
resp, err := app.Test(req)
require.NoError(t, err, "app.Test(req)")
require.Equal(t, StatusMethodNotAllowed, resp.StatusCode, "Status code")
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_App_GETOnly() do?
Test_App_GETOnly() is a function in the fiber codebase, defined in app_test.go.
Where is Test_App_GETOnly() defined?
Test_App_GETOnly() is defined in app_test.go at line 1021.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free