Test_Integration_App_ServerErrorHandler_PreservesRequestID() — fiber Function Reference
Architecture documentation for the Test_Integration_App_ServerErrorHandler_PreservesRequestID() function in app_integration_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 9477fd03_7447_0f8c_8578_be2f15ecc639["Test_Integration_App_ServerErrorHandler_PreservesRequestID()"] 861529d8_c77d_779c_a04e_384693fbcc82["app_integration_test.go"] 9477fd03_7447_0f8c_8578_be2f15ecc639 -->|defined in| 861529d8_c77d_779c_a04e_384693fbcc82 89ef89e1_149f_b4b2_0c6a_e8967b8441b2["performOversizedRequest()"] 9477fd03_7447_0f8c_8578_be2f15ecc639 -->|calls| 89ef89e1_149f_b4b2_0c6a_e8967b8441b2 style 9477fd03_7447_0f8c_8578_be2f15ecc639 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
app_integration_test.go lines 540–555
func Test_Integration_App_ServerErrorHandler_PreservesRequestID(t *testing.T) {
const expectedRequestID = "integration-request-id"
app := fiber.New(fiber.Config{BodyLimit: 16})
app.Use(requestid.New())
app.Post("/", func(c fiber.Ctx) error {
return c.SendStatus(fiber.StatusOK)
})
resp := performOversizedRequest(t, app, func(req *fasthttp.Request) {
req.Header.Set("X-Request-ID", expectedRequestID)
})
require.Equal(t, fiber.StatusRequestEntityTooLarge, resp.StatusCode())
require.Equal(t, expectedRequestID, string(resp.Header.Peek("X-Request-ID")))
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_Integration_App_ServerErrorHandler_PreservesRequestID() do?
Test_Integration_App_ServerErrorHandler_PreservesRequestID() is a function in the fiber codebase, defined in app_integration_test.go.
Where is Test_Integration_App_ServerErrorHandler_PreservesRequestID() defined?
Test_Integration_App_ServerErrorHandler_PreservesRequestID() is defined in app_integration_test.go at line 540.
What does Test_Integration_App_ServerErrorHandler_PreservesRequestID() call?
Test_Integration_App_ServerErrorHandler_PreservesRequestID() calls 1 function(s): performOversizedRequest.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free