test(render): add comprehensive error handling tests (#4541)
* 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 <[email protected]> Co-authored-by: AmirHossein Fallah <[email protected]>
A
Amirhf committed
6f1d5fe3cdb171a08928c3c9dd3fbcfc9ee1b521
Parent: 5c00df8
Committed by GitHub <[email protected]>
on 2/28/2026, 2:11:57 AM