Skip to content

Commit

Permalink
only unmashal public variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikaelemmmm committed Feb 11, 2023
1 parent 6ba6538 commit 65a9d97
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/mapping/unmarshaler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -792,8 +792,10 @@ func TestUnmarshalStringMapFromNotSettableValue(t *testing.T) {
"psort": `{"value":"ascend","emptyStr":""}`,
}

ast := assert.New(t)
ast.Error(UnmarshalKey(m, &v))
if assert.NoError(t, UnmarshalKey(m, &v)) {
assert.Nil(t, v.sort)
assert.Nil(t, v.psort)
}
}

func TestUnmarshalStringMapFromString(t *testing.T) {
Expand Down

0 comments on commit 65a9d97

Please sign in to comment.