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

Make Promotion.get_type_promotion_exn more robust to bad inputs #1293

Merged
merged 3 commits into from
Mar 17, 2023

Conversation

WardBrian
Copy link
Member

Submission Checklist

  • Run unit tests
  • Documentation
    • If a user-facing facing change was made, the documentation PR is here:
    • OR, no user-facing changes were made

Release notes

Follow on to #1292. This fixes the names of the arguments and adds a few extra checks which would have caught the bug there originally.

Copyright and Licensing

By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the BSD 3-clause license (https://opensource.org/licenses/BSD-3-Clause)

@WardBrian WardBrian added the cleanup Code simplification or clean-up label Mar 17, 2023
@WardBrian WardBrian requested a review from nhuurre March 17, 2023 15:57
@codecov
Copy link

codecov bot commented Mar 17, 2023

Codecov Report

Merging #1293 (b6141bc) into master (2eb708a) will decrease coverage by 0.01%.
The diff coverage is 73.91%.

@@            Coverage Diff             @@
##           master    #1293      +/-   ##
==========================================
- Coverage   89.02%   89.02%   -0.01%     
==========================================
  Files          64       64              
  Lines        9744     9747       +3     
==========================================
+ Hits         8675     8677       +2     
- Misses       1069     1070       +1     
Impacted Files Coverage Δ
src/frontend/Promotion.ml 87.71% <73.91%> (-1.17%) ⬇️

src/frontend/Promotion.ml Outdated Show resolved Hide resolved
src/frontend/Promotion.ml Outdated Show resolved Hide resolved
src/frontend/Promotion.ml Outdated Show resolved Hide resolved
@WardBrian WardBrian requested a review from nhuurre March 17, 2023 18:19
@WardBrian WardBrian merged commit 2f20a44 into master Mar 17, 2023
@WardBrian WardBrian deleted the cleanup/promotion-robustness branch March 17, 2023 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code simplification or clean-up
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants