Test_App_Test_response_error() — fiber Function Reference
Architecture documentation for the Test_App_Test_response_error() function in app_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 24a7966f_2e07_db5f_ebe1_666d9c1738de["Test_App_Test_response_error()"] e728fdd2_242f_706b_c1d2_041b3d6badb5["app_test.go"] 24a7966f_2e07_db5f_ebe1_666d9c1738de -->|defined in| e728fdd2_242f_706b_c1d2_041b3d6badb5 style 24a7966f_2e07_db5f_ebe1_666d9c1738de fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
app_test.go lines 2494–2518
func Test_App_Test_response_error(t *testing.T) {
// Note: Test cannot run in parallel due to
// overriding the httpReadResponse global variable.
// t.Parallel()
// Override httpReadResponse temporarily
oldHTTPReadResponse := httpReadResponse
defer func() {
httpReadResponse = oldHTTPReadResponse
}()
httpReadResponse = func(_ *bufio.Reader, _ *http.Request) (*http.Response, error) {
return nil, errErrorReader
}
app := New()
app.Get("/", func(c Ctx) error {
return c.SendStatus(StatusOK)
})
_, err := app.Test(httptest.NewRequest(MethodGet, "/", http.NoBody), TestConfig{
Timeout: 0,
FailOnTimeout: false,
})
require.ErrorIs(t, err, errErrorReader)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_App_Test_response_error() do?
Test_App_Test_response_error() is a function in the fiber codebase, defined in app_test.go.
Where is Test_App_Test_response_error() defined?
Test_App_Test_response_error() is defined in app_test.go at line 2494.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free