Test_Non_Pprof_Path() — fiber Function Reference
Architecture documentation for the Test_Non_Pprof_Path() function in pprof_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD c20fbcf8_25cf_b447_c385_675db05a157a["Test_Non_Pprof_Path()"] bab7fd6d_604c_3199_e6a9_4920ae309ff5["pprof_test.go"] c20fbcf8_25cf_b447_c385_675db05a157a -->|defined in| bab7fd6d_604c_3199_e6a9_4920ae309ff5 style c20fbcf8_25cf_b447_c385_675db05a157a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
middleware/pprof/pprof_test.go lines 20–36
func Test_Non_Pprof_Path(t *testing.T) {
app := fiber.New()
app.Use(New())
app.Get("/", func(c fiber.Ctx) error {
return c.SendString("escaped")
})
resp, err := app.Test(httptest.NewRequest(fiber.MethodGet, "/", http.NoBody))
require.NoError(t, err)
require.Equal(t, 200, resp.StatusCode)
b, err := io.ReadAll(resp.Body)
require.NoError(t, err)
require.Equal(t, "escaped", string(b))
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_Non_Pprof_Path() do?
Test_Non_Pprof_Path() is a function in the fiber codebase, defined in middleware/pprof/pprof_test.go.
Where is Test_Non_Pprof_Path() defined?
Test_Non_Pprof_Path() is defined in middleware/pprof/pprof_test.go at line 20.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free