chore: refactor mapping errors (#3843)

This commit is contained in:
Kevin Wan
2024-01-13 22:11:19 +08:00
committed by GitHub
parent 0441f84606
commit 7822a4c1cb
3 changed files with 4 additions and 2 deletions

View File

@@ -1340,7 +1340,7 @@ func TestUnmarshalNullableSlice(t *testing.T) {
}
ast := assert.New(t)
ast.Equal(UnmarshalKey(m, &v), errUnsupportedType)
ast.Equal(UnmarshalKey(m, &v), errNilSliceElement)
}
func TestUnmarshalIntSlice(t *testing.T) {