Skip to content
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

feat!: Enrich #value_or API #24

Merged
merged 1 commit into from
Dec 15, 2024
Merged

feat!: Enrich #value_or API #24

merged 1 commit into from
Dec 15, 2024

Conversation

ixti
Copy link
Owner

@ixti ixti commented Dec 15, 2024

  • Ensure Success#value_or behaves exactly like Failure's, i.e. requires default value or a block to be given.
  • Allow passing literal default instead of block.

* Ensure `Success#value_or` behaves exactly like `Failure`'s, i.e.
  requires `default` value or a `block` to be given.
* Allow passing literal default instead of block.
@ixti ixti enabled auto-merge (squash) December 15, 2024 23:47
Copy link

codecov bot commented Dec 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (d12b265) to head (685aa7a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #24   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           12        13    +1     
  Lines          172       184   +12     
  Branches        19        25    +6     
=========================================
+ Hits           172       184   +12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ixti ixti merged commit 1638239 into main Dec 15, 2024
9 checks passed
@ixti ixti deleted the harden-value-or-api branch December 15, 2024 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant