Test_App_Test_no_timeout_infinitely() — fiber Function Reference
Architecture documentation for the Test_App_Test_no_timeout_infinitely() function in app_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 67225457_66b6_f2af_8288_b24cc092d359["Test_App_Test_no_timeout_infinitely()"] e728fdd2_242f_706b_c1d2_041b3d6badb5["app_test.go"] 67225457_66b6_f2af_8288_b24cc092d359 -->|defined in| e728fdd2_242f_706b_c1d2_041b3d6badb5 style 67225457_66b6_f2af_8288_b24cc092d359 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
app_test.go lines 2409–2442
func Test_App_Test_no_timeout_infinitely(t *testing.T) {
t.Parallel()
var err error
c := make(chan int)
go func() {
defer func() { c <- 0 }()
app := New()
app.Get("/", func(_ Ctx) error {
runtime.Goexit()
return nil
})
req := httptest.NewRequest(MethodGet, "/", http.NoBody)
_, err = app.Test(req, TestConfig{
Timeout: 0,
})
}()
tk := time.NewTimer(5 * time.Second)
defer tk.Stop()
select {
case <-tk.C:
t.Error("hanging test")
t.FailNow()
case <-c:
}
if err == nil {
t.Error("unexpected success request")
t.FailNow()
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_App_Test_no_timeout_infinitely() do?
Test_App_Test_no_timeout_infinitely() is a function in the fiber codebase, defined in app_test.go.
Where is Test_App_Test_no_timeout_infinitely() defined?
Test_App_Test_no_timeout_infinitely() is defined in app_test.go at line 2409.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free