[#5614] removed hook.HandlerFunc[T] type

This commit is contained in:
Gani Georgiev
2024-10-07 09:52:31 +03:00
parent 1d4dd5d5b4
commit 393b461ea2
13 changed files with 4236 additions and 4235 deletions

View File

@@ -124,12 +124,12 @@ func TestHookTriggerErrorPropagation(t *testing.T) {
scenarios := []struct {
name string
handlers []HandlerFunc[*Event]
handlers []func(*Event) error
expectedError error
}{
{
"without error",
[]HandlerFunc[*Event]{
[]func(*Event) error{
func(e *Event) error { return e.Next() },
func(e *Event) error { return e.Next() },
},
@@ -137,7 +137,7 @@ func TestHookTriggerErrorPropagation(t *testing.T) {
},
{
"with error",
[]HandlerFunc[*Event]{
[]func(*Event) error{
func(e *Event) error { return e.Next() },
func(e *Event) error { e.Next(); return err },
func(e *Event) error { return e.Next() },