Skip to content

Commit

Permalink
typo(mapping): fix typo for key (zeromicro#2548)
Browse files Browse the repository at this point in the history
  • Loading branch information
re-dylan authored Oct 24, 2022
1 parent 46e236f commit 4d2a146
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/mapping/unmarshaler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

"github.com/google/uuid"
"github.com/stretchr/testify/assert"

"github.com/zeromicro/go-zero/core/stringx"
)

Expand Down Expand Up @@ -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":""}`,
Expand Down

0 comments on commit 4d2a146

Please sign in to comment.