Test_executeOnGroupNameHooks_ErrorWithMount() — fiber Function Reference
Architecture documentation for the Test_executeOnGroupNameHooks_ErrorWithMount() function in hooks_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD d0c02db7_0ed9_98ad_c8d4_63488dc70174["Test_executeOnGroupNameHooks_ErrorWithMount()"] 2d218330_4ff5_8bbe_d9c4_174410c41dd0["hooks_test.go"] d0c02db7_0ed9_98ad_c8d4_63488dc70174 -->|defined in| 2d218330_4ff5_8bbe_d9c4_174410c41dd0 style d0c02db7_0ed9_98ad_c8d4_63488dc70174 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
hooks_test.go lines 629–643
func Test_executeOnGroupNameHooks_ErrorWithMount(t *testing.T) {
t.Parallel()
app := New()
app.mountFields.mountPath = testMountPath
var prefix string
app.Hooks().OnGroupName(func(g Group) error {
prefix = g.Prefix
return errors.New("group name error")
})
err := app.hooks.executeOnGroupNameHooks(Group{Prefix: "/grp"})
require.Equal(t, testMountPath+"/grp", prefix)
require.EqualError(t, err, "group name error")
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_executeOnGroupNameHooks_ErrorWithMount() do?
Test_executeOnGroupNameHooks_ErrorWithMount() is a function in the fiber codebase, defined in hooks_test.go.
Where is Test_executeOnGroupNameHooks_ErrorWithMount() defined?
Test_executeOnGroupNameHooks_ErrorWithMount() is defined in hooks_test.go at line 629.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free