Home / Function/ Test_executeOnGroupHooks_ErrorWithMount() — fiber Function Reference

Test_executeOnGroupHooks_ErrorWithMount() — fiber Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

hooks_test.go lines 613–627

func Test_executeOnGroupHooks_ErrorWithMount(t *testing.T) {
	t.Parallel()
	app := New()
	app.mountFields.mountPath = testMountPath

	var prefix string
	app.Hooks().OnGroup(func(g Group) error {
		prefix = g.Prefix
		return errors.New("group error")
	})

	err := app.hooks.executeOnGroupHooks(Group{Prefix: "/grp"})
	require.Equal(t, testMountPath+"/grp", prefix)
	require.EqualError(t, err, "group error")
}

Domain

Subdomains

Defined In

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free