gin/binding
Renan Pimentel 441ee408b1 test(binding): check bad bodies with the binding under test
testBodyBinding and testBodyBindingFail receive the binding under test
as `b`, but their second half bound the bad body with JSON.Bind. For
XML, TOML, YAML and BSON this meant the validation case never ran
through the binding being tested.

As a result, making xmlBinding or tomlBinding ignore decode errors and
skip validate() (`err != nil` -> `err == nil` in decodeXML/decodeTOML)
kept the whole binding package green. With b.Bind, TestBindingXML,
TestBindingXMLFail, TestBindingTOML and TestBindingTOMLFail fail on
that change and pass on master.
2026-10-06 20:56:59 -03:00
..
2025-04-12 00:00:59 +08:00
2022-05-30 15:16:10 +08:00