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

Stop using exhaustive switch statements #2029

Merged
merged 2 commits into from
Dec 4, 2023

Conversation

jellefoks
Copy link
Member

@jellefoks jellefoks commented Nov 29, 2023

We no longer have compilers (or compiler settings) that enforce exhaustive switch statements for enums. That means we can now use 'default' cases where that makes more sense.

b/314002146

Copy link

codecov bot commented Nov 29, 2023

Codecov Report

Attention: 15 lines in your changes are missing coverage. Please review.

Comparison is base (0cc8357) 58.12% compared to head (6a372bc) 58.68%.

Files Patch % Lines
cobalt/cssom/computed_style.cc 13.33% 13 Missing ⚠️
cobalt/dom/font_face_updater.cc 0.00% 1 Missing ⚠️
cobalt/system_window/system_window.cc 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2029      +/-   ##
==========================================
+ Coverage   58.12%   58.68%   +0.56%     
==========================================
  Files        1907     1907              
  Lines       95200    94073    -1127     
==========================================
- Hits        55336    55208     -128     
+ Misses      39864    38865     -999     

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

@jellefoks jellefoks merged commit c083e36 into youtube:main Dec 4, 2023
332 of 334 checks passed
@jellefoks jellefoks deleted the default_enum_case branch December 4, 2023 17:55
Rongo-JL pushed a commit to Rongo-JL/cobalt that referenced this pull request Dec 19, 2023
We no longer have compilers (or compiler settings) that enforce
exhaustive switch statements for enums. That means we can now use
'default' cases where that makes more sense.

b/314002146
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.

2 participants