Closed lsdch closed 1 month ago
The recent changes introduce Filename
and Size
fields to the FormFile
struct in formdata.go
, allowing the extraction of these details from multipart/form-data requests. Corresponding updates in huma_test.go
include new assertions to verify these fields, enhancing the test coverage for file handling functionality.
File(s) | Change Summary |
---|---|
formdata.go |
Added Filename and Size fields to FormFile struct and updated readFile method accordingly. |
huma_test.go |
Enhanced tests with assertions for Filename and Size fields in file data elements. |
Objective (Issue #) | Addressed | Explanation |
---|---|---|
Accessing file name and file size in multipart/form-data request (#465) |
✅ | |
Added assertions for filename and size checks in tests (#465) | ✅ |
In the code where data flows, Filename and size now show. Tests enhance, they check with care, Ensuring files are handled fair. 🐇 Code evolves, we celebrate, With features new, we innovate! 🎉
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 92.85%. Comparing base (
158b076
) to head (9853d25
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
fixes #465
Summary by CodeRabbit
New Features
Tests