mirror of
https://github.com/labstack/echo.git
synced 2025-07-03 00:56:59 +02:00
explicitly return an error instead of hiding it
This commit is contained in:
@ -370,9 +370,7 @@ func TestBindUnmarshalParamAnonymousFieldPtrCustomTag(t *testing.T) {
|
||||
*Bar `json:"bar" query:"bar"`
|
||||
}{&Bar{}}
|
||||
err := c.Bind(&result)
|
||||
if assert.NoError(t, err) {
|
||||
assert.Equal(t, 1, result.Baz)
|
||||
}
|
||||
assert.Contains(t, err.Error(), "query/param/form tags are not allowed with anonymous struct field")
|
||||
}
|
||||
|
||||
func TestBindUnmarshalTextPtr(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user