mirror of
https://github.com/gin-gonic/gin.git
synced 2026-04-11 14:11:46 +08:00
* test(render): add comprehensive error handling tests Add error case tests for XML, Data, BSON, and HTML renderers to improve test coverage and ensure proper error handling: - TestRenderXMLError: validates XML marshal error handling for unsupported types - TestRenderDataError: validates Data write error handling - TestRenderBSONError: validates BSON marshal error handling for unsupported types - TestRenderBSONWriteError: validates BSON write error handling - TestRenderHTMLTemplateError: validates HTML template execution error with invalid field access - TestRenderHTMLTemplateExecuteError: validates HTML template execution error with invalid nested field All tests pass and maintain 100% coverage for the render package. * test(render): improve robustness of error handling tests based on PR feedback --------- Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com> Co-authored-by: AmirHossein Fallah <amirhossein.fallah@arvancloud.ir> |
||
|---|---|---|
| .. | ||
| bson.go | ||
| data.go | ||
| html.go | ||
| json.go | ||
| msgpack.go | ||
| protobuf.go | ||
| reader_test.go | ||
| reader.go | ||
| redirect.go | ||
| render_msgpack_test.go | ||
| render_test.go | ||
| render.go | ||
| text.go | ||
| toml.go | ||
| xml.go | ||
| yaml.go | ||