Test_Proxy_DoDeadline_PastDeadline() — fiber Function Reference
Architecture documentation for the Test_Proxy_DoDeadline_PastDeadline() function in proxy_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 49731b32_53a7_53c8_ff7b_fcf1f2b97323["Test_Proxy_DoDeadline_PastDeadline()"] a7c70172_e40a_6ad6_65b6_b8f508cfb0a2["proxy_test.go"] 49731b32_53a7_53c8_ff7b_fcf1f2b97323 -->|defined in| a7c70172_e40a_6ad6_65b6_b8f508cfb0a2 52270b9b_26c8_081b_5239_bee723ca512a["createProxyTestServerIPv4()"] 49731b32_53a7_53c8_ff7b_fcf1f2b97323 -->|calls| 52270b9b_26c8_081b_5239_bee723ca512a style 49731b32_53a7_53c8_ff7b_fcf1f2b97323 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
middleware/proxy/proxy_test.go lines 690–706
func Test_Proxy_DoDeadline_PastDeadline(t *testing.T) {
_, addr := createProxyTestServerIPv4(t, func(c fiber.Ctx) error {
time.Sleep(time.Second * 5)
return c.SendString("proxied")
})
app := fiber.New()
app.Get("/test", func(c fiber.Ctx) error {
return DoDeadline(c, "http://"+addr, time.Now().Add(2*time.Second))
})
_, err1 := app.Test(httptest.NewRequest(fiber.MethodGet, "/test", http.NoBody), fiber.TestConfig{
Timeout: 1 * time.Second,
FailOnTimeout: true,
})
require.Equal(t, os.ErrDeadlineExceeded, err1)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_Proxy_DoDeadline_PastDeadline() do?
Test_Proxy_DoDeadline_PastDeadline() is a function in the fiber codebase, defined in middleware/proxy/proxy_test.go.
Where is Test_Proxy_DoDeadline_PastDeadline() defined?
Test_Proxy_DoDeadline_PastDeadline() is defined in middleware/proxy/proxy_test.go at line 690.
What does Test_Proxy_DoDeadline_PastDeadline() call?
Test_Proxy_DoDeadline_PastDeadline() calls 1 function(s): createProxyTestServerIPv4.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free