Home / Function/ Test_Pprof_Next() — fiber Function Reference

Test_Pprof_Next() — fiber Function Reference

Architecture documentation for the Test_Pprof_Next() function in pprof_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  0f3bf459_cb2e_8d92_7956_2b31dbcce039["Test_Pprof_Next()"]
  bab7fd6d_604c_3199_e6a9_4920ae309ff5["pprof_test.go"]
  0f3bf459_cb2e_8d92_7956_2b31dbcce039 -->|defined in| bab7fd6d_604c_3199_e6a9_4920ae309ff5
  style 0f3bf459_cb2e_8d92_7956_2b31dbcce039 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/pprof/pprof_test.go lines 177–189

func Test_Pprof_Next(t *testing.T) {
	app := fiber.New()

	app.Use(New(Config{
		Next: func(_ fiber.Ctx) bool {
			return true
		},
	}))

	resp, err := app.Test(httptest.NewRequest(fiber.MethodGet, "/debug/pprof/", http.NoBody))
	require.NoError(t, err)
	require.Equal(t, 404, resp.StatusCode)
}

Domain

Subdomains

Frequently Asked Questions

What does Test_Pprof_Next() do?
Test_Pprof_Next() is a function in the fiber codebase, defined in middleware/pprof/pprof_test.go.
Where is Test_Pprof_Next() defined?
Test_Pprof_Next() is defined in middleware/pprof/pprof_test.go at line 177.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free