Home / Function/ Test_executeOnForkHooks_Error() — fiber Function Reference

Test_executeOnForkHooks_Error() — fiber Function Reference

Architecture documentation for the Test_executeOnForkHooks_Error() function in hooks_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  0f39abd3_dd15_dd4b_c0cf_ed28fc598916["Test_executeOnForkHooks_Error()"]
  2d218330_4ff5_8bbe_d9c4_174410c41dd0["hooks_test.go"]
  0f39abd3_dd15_dd4b_c0cf_ed28fc598916 -->|defined in| 2d218330_4ff5_8bbe_d9c4_174410c41dd0
  style 0f39abd3_dd15_dd4b_c0cf_ed28fc598916 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

hooks_test.go lines 695–708

func Test_executeOnForkHooks_Error(t *testing.T) {
	t.Parallel()
	app := New()

	app.Hooks().OnFork(func(pid int) error {
		require.Equal(t, 1, pid)
		return errors.New("fork error")
	})

	var buf bytes.Buffer
	log.SetOutput(&buf)
	app.hooks.executeOnForkHooks(1)
	require.NotZero(t, buf.Len())
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does Test_executeOnForkHooks_Error() do?
Test_executeOnForkHooks_Error() is a function in the fiber codebase, defined in hooks_test.go.
Where is Test_executeOnForkHooks_Error() defined?
Test_executeOnForkHooks_Error() is defined in hooks_test.go at line 695.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free