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

This commit is contained in:
Gani Georgiev committed 2024-10-07 09:52:31 +03:00
1 parent 1d4dd5d5b4
commit 393b461ea2
13 files changed
+4232 -4231

No files matched your search

+3 -3
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() },