Home / Function/ Test_Recover_EnableStackTrace() — fiber Function Reference

Test_Recover_EnableStackTrace() — fiber Function Reference

Architecture documentation for the Test_Recover_EnableStackTrace() function in recover_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  724514e6_0487_8892_3b4d_f795111b68d9["Test_Recover_EnableStackTrace()"]
  7c11c55a_4463_4f98_bd3c_1c6d6baff2cf["recover_test.go"]
  724514e6_0487_8892_3b4d_f795111b68d9 -->|defined in| 7c11c55a_4463_4f98_bd3c_1c6d6baff2cf
  style 724514e6_0487_8892_3b4d_f795111b68d9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/recover/recover_test.go lines 48–62

func Test_Recover_EnableStackTrace(t *testing.T) {
	t.Parallel()
	app := fiber.New()
	app.Use(New(Config{
		EnableStackTrace: true,
	}))

	app.Get("/panic", func(_ fiber.Ctx) error {
		panic("Hi, I'm an error!")
	})

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

Domain

Subdomains

Frequently Asked Questions

What does Test_Recover_EnableStackTrace() do?
Test_Recover_EnableStackTrace() is a function in the fiber codebase, defined in middleware/recover/recover_test.go.
Where is Test_Recover_EnableStackTrace() defined?
Test_Recover_EnableStackTrace() is defined in middleware/recover/recover_test.go at line 48.

Analyze Your Own Codebase

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

Try Supermodel Free