(t *testing.T)
| 709 | } |
| 710 | |
| 711 | func Test_executeOnMountHooks_Error(t *testing.T) { |
| 712 | t.Parallel() |
| 713 | app := New() |
| 714 | parent := New() |
| 715 | |
| 716 | app.Hooks().OnMount(func(a *App) error { |
| 717 | require.Equal(t, parent, a) |
| 718 | return errors.New("mount error") |
| 719 | }) |
| 720 | |
| 721 | err := app.hooks.executeOnMountHooks(parent) |
| 722 | require.EqualError(t, err, "mount error") |
| 723 | } |
nothing calls this directly
no test coverage detected