Conversation
Co-authored-by: Geraldo Castro <geraldo.castro@thoughtworks.com> Co-authored-by: Steve Hipwell <steve.hipwell@gmail.com>
8b0d697 to
ee2f18b
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4042 +/- ##
=======================================
Coverage 94.08% 94.08%
=======================================
Files 207 207
Lines 19217 19217
=======================================
Hits 18081 18081
Misses 938 938
Partials 198 198 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
gmlewis
left a comment
There was a problem hiding this comment.
Thank you, @alexandear, this looks great!
I have just a few nits/questions for you, otherwise LGTM.
After that, we should be ready for a second LGTM+Approval from any other contributor to this repo before merging.
testJSONMarshal
|
So moving forward, do developers need to add |
That's a good question, and it highlights a somewhat misleading API. I've slightly improved the test functions to make their intent clearer. In general, developers should use |
Do you want to give some guidance or recommendations in either CONTRIBUTING.md or in the comments of these functions? |
gmlewis
left a comment
There was a problem hiding this comment.
Excellent! Thank you, @alexandear!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.
This PR rewrites
testJSONMarshal, so that it properly verifies field marshaling and unmarshaling. Unmarshaling is more complex, as it requires adding multiple options to work around limitations in some of our structs.I removed tests for structs with only use
urlfield tags, since they are unnecessary.As #3519 has had no activity since April, I decided to complete this work.
Original author: @exageraldo.
Applied review comments from: @stevehipwell
Fixes #2699
Closes #3519