Test_executeOnPreShutdownHooks_Error() — fiber Function Reference
Architecture documentation for the Test_executeOnPreShutdownHooks_Error() function in hooks_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 9a194b15_6763_9c20_a148_2e5c2ffe7bb8["Test_executeOnPreShutdownHooks_Error()"] 2d218330_4ff5_8bbe_d9c4_174410c41dd0["hooks_test.go"] 9a194b15_6763_9c20_a148_2e5c2ffe7bb8 -->|defined in| 2d218330_4ff5_8bbe_d9c4_174410c41dd0 style 9a194b15_6763_9c20_a148_2e5c2ffe7bb8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
hooks_test.go lines 681–693
func Test_executeOnPreShutdownHooks_Error(t *testing.T) {
t.Parallel()
app := New()
app.Hooks().OnPreShutdown(func() error {
return errors.New("pre error")
})
var buf bytes.Buffer
log.SetOutput(&buf)
app.hooks.executeOnPreShutdownHooks()
require.NotZero(t, buf.Len())
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_executeOnPreShutdownHooks_Error() do?
Test_executeOnPreShutdownHooks_Error() is a function in the fiber codebase, defined in hooks_test.go.
Where is Test_executeOnPreShutdownHooks_Error() defined?
Test_executeOnPreShutdownHooks_Error() is defined in hooks_test.go at line 681.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free