TestIsTimeoutError_CustomErrors() — fiber Function Reference
Architecture documentation for the TestIsTimeoutError_CustomErrors() function in timeout_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD b864b282_e20e_3f55_b19d_1a28fdd1b741["TestIsTimeoutError_CustomErrors()"] bab1b67e_4e42_cfe9_38ec_3f1f6a839718["timeout_test.go"] b864b282_e20e_3f55_b19d_1a28fdd1b741 -->|defined in| bab1b67e_4e42_cfe9_38ec_3f1f6a839718 style b864b282_e20e_3f55_b19d_1a28fdd1b741 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
middleware/timeout/timeout_test.go lines 269–276
func TestIsTimeoutError_CustomErrors(t *testing.T) {
t.Parallel()
customErr := errors.New("custom timeout")
require.True(t, isTimeoutError(customErr, []error{customErr}))
require.True(t, isTimeoutError(fmt.Errorf("wrap: %w", customErr), []error{customErr}))
require.False(t, isTimeoutError(errUnrelated, []error{customErr}))
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does TestIsTimeoutError_CustomErrors() do?
TestIsTimeoutError_CustomErrors() is a function in the fiber codebase, defined in middleware/timeout/timeout_test.go.
Where is TestIsTimeoutError_CustomErrors() defined?
TestIsTimeoutError_CustomErrors() is defined in middleware/timeout/timeout_test.go at line 269.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free