Skip to content

Commit

Permalink
🐛 fix function name tests
Browse files Browse the repository at this point in the history
  • Loading branch information
efectn committed Sep 23, 2022
1 parent f33fd2c commit 81f0c5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (

func Test_FunctionName(t *testing.T) {
t.Parallel()
require.Equal(t, "github.com/gofiber/fiber/v3/utils.Test_UUID", FunctionName(Test_UUID))
require.Equal(t, "github.com/gofiber/utils.Test_UUID", FunctionName(Test_UUID))

require.Equal(t, "github.com/gofiber/fiber/v3/utils.Test_FunctionName.func1", FunctionName(func() {}))
require.Equal(t, "github.com/gofiber/utils.Test_FunctionName.func1", FunctionName(func() {}))

dummyint := 20
require.Equal(t, "int", FunctionName(dummyint))
Expand Down

0 comments on commit 81f0c5a

Please sign in to comment.