-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[configoptional] Make Unmarshal into None[T] match unmarshal into (*T)(nil) #13168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[configoptional] Make Unmarshal into None[T] match unmarshal into (*T)(nil) #13168
Conversation
5cd0415
to
53bdd95
Compare
Codecov ReportAttention: Patch coverage is
❌ Your patch check has failed because the patch coverage (75.00%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #13168 +/- ##
==========================================
- Coverage 91.29% 91.28% -0.02%
==========================================
Files 509 509
Lines 28735 28764 +29
==========================================
+ Hits 26233 26256 +23
- Misses 1988 1993 +5
- Partials 514 515 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…one[T] to match unmarshaling into (*T)(nil)
53bdd95
to
e493250
Compare
Description
Makes it so that unmarshaling into a
None[T]
is equivalent to unmarshaling into a(*T)(nil)
.The goal is to be able to do #13109 without introducing any changes to the behavior.
Needs #13161.
Testing
Add a unit test to compare the behavior of unmarshaling into
(*T)(nil)
with that of unmarshaling intoNone[T]
Documentation