From 4d2a146733cca9479d8a58ea546b70f3e6676518 Mon Sep 17 00:00:00 2001 From: re-dylan <35103941+re-dylan@users.noreply.github.com> Date: Mon, 24 Oct 2022 21:43:53 +0800 Subject: [PATCH] typo(mapping): fix typo for key (#2548) --- core/mapping/unmarshaler_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/mapping/unmarshaler_test.go b/core/mapping/unmarshaler_test.go index 97c27890..f445817d 100644 --- a/core/mapping/unmarshaler_test.go +++ b/core/mapping/unmarshaler_test.go @@ -10,6 +10,7 @@ import ( "github.com/google/uuid" "github.com/stretchr/testify/assert" + "github.com/zeromicro/go-zero/core/stringx" ) @@ -539,7 +540,7 @@ func TestUnmarshalStringMapFromUnsupportedType(t *testing.T) { func TestUnmarshalStringMapFromNotSettableValue(t *testing.T) { var v struct { sort map[string]string `key:"sort"` - psort *map[string]string `key:"sort"` + psort *map[string]string `key:"psort"` } m := map[string]interface{}{ "sort": `{"value":"ascend","emptyStr":""}`,