Home / Function/ Test_Pprof_Other() — fiber Function Reference

Test_Pprof_Other() — fiber Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

middleware/pprof/pprof_test.go lines 148–160

func Test_Pprof_Other(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, "/debug/pprof/303", http.NoBody))
	require.NoError(t, err)
	require.Equal(t, fiber.StatusSeeOther, resp.StatusCode)
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free