(t *testing.T)
| 612 | } |
| 613 | |
| 614 | func Test_executeOnGroupHooks_ErrorWithMount(t *testing.T) { |
| 615 | t.Parallel() |
| 616 | app := New() |
| 617 | app.mountFields.mountPath = testMountPath |
| 618 | |
| 619 | var prefix string |
| 620 | app.Hooks().OnGroup(func(g Group) error { |
| 621 | prefix = g.Prefix |
| 622 | return errors.New("group error") |
| 623 | }) |
| 624 | |
| 625 | err := app.hooks.executeOnGroupHooks(Group{Prefix: "/grp"}) |
| 626 | require.Equal(t, testMountPath+"/grp", prefix) |
| 627 | require.EqualError(t, err, "group error") |
| 628 | } |
| 629 | |
| 630 | func Test_executeOnGroupNameHooks_ErrorWithMount(t *testing.T) { |
| 631 | t.Parallel() |
nothing calls this directly
no test coverage detected