Home / Function/ Test_App_Error_In_Fasthttp_Server() — fiber Function Reference

Test_App_Error_In_Fasthttp_Server() — fiber Function Reference

Architecture documentation for the Test_App_Error_In_Fasthttp_Server() function in app_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  2aaab3a3_4dcd_35e7_aab1_c1479c576e02["Test_App_Error_In_Fasthttp_Server()"]
  e728fdd2_242f_706b_c1d2_041b3d6badb5["app_test.go"]
  2aaab3a3_4dcd_35e7_aab1_c1479c576e02 -->|defined in| e728fdd2_242f_706b_c1d2_041b3d6badb5
  style 2aaab3a3_4dcd_35e7_aab1_c1479c576e02 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

app_test.go lines 2317–2327

func Test_App_Error_In_Fasthttp_Server(t *testing.T) {
	app := New()
	app.config.ErrorHandler = func(_ Ctx, _ error) error {
		return errors.New("fake error")
	}
	app.server.GetOnly = true

	resp, err := app.Test(httptest.NewRequest(MethodPost, "/", http.NoBody))
	require.NoError(t, err)
	require.Equal(t, 500, resp.StatusCode)
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does Test_App_Error_In_Fasthttp_Server() do?
Test_App_Error_In_Fasthttp_Server() is a function in the fiber codebase, defined in app_test.go.
Where is Test_App_Error_In_Fasthttp_Server() defined?
Test_App_Error_In_Fasthttp_Server() is defined in app_test.go at line 2317.

Analyze Your Own Codebase

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

Try Supermodel Free