Home / Function/ Test_executeOnNameHooks_ErrorWithMount() — fiber Function Reference

Test_executeOnNameHooks_ErrorWithMount() — fiber Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

hooks_test.go lines 597–611

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

	var received string
	app.Hooks().OnName(func(r Route) error {
		received = r.Path
		return errors.New("name error")
	})

	err := app.hooks.executeOnNameHooks(&Route{Path: "/bar", path: "/bar"})
	require.Equal(t, testMountPath+"/bar", received)
	require.EqualError(t, err, "name error")
}

Domain

Subdomains

Defined In

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free