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

Improve mapping between enum value and designation ECFLOW-1931 #69

Merged
merged 2 commits into from
Dec 8, 2023

Conversation

marcosbento
Copy link
Collaborator

No description provided.

@marcosbento marcosbento force-pushed the feature/reduce_code_duplication branch 2 times, most recently from f70056f to 641d655 Compare December 8, 2023 17:31
The goals behind these changes is to create a structure that holds the mapping between enum value and the corresponding designation, and then use it to make conversions.

This approach avoids needless source code repetition (including repeated designation values), and allows to easily support new enum values/designation, by simply adding new entries to the mapping table.

Re ECFLOW-1931
@marcosbento marcosbento force-pushed the feature/reduce_code_duplication branch from 641d655 to 88e9f3e Compare December 8, 2023 17:43
@codecov-commenter
Copy link

Codecov Report

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

Comparison is base (7d4b289) 80.17% compared to head (88e9f3e) 83.53%.

Files Patch % Lines
ACore/src/ecflow/core/Enumerate.hpp 85.71% 2 Missing ⚠️
Base/src/ecflow/base/cts/user/AlterCmd.cpp 91.66% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop      #69      +/-   ##
===========================================
+ Coverage    80.17%   83.53%   +3.35%     
===========================================
  Files          625      590      -35     
  Lines        57957    52438    -5519     
===========================================
- Hits         46466    43803    -2663     
+ Misses       11491     8635    -2856     

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

@marcosbento marcosbento merged commit ab34d71 into develop Dec 8, 2023
48 checks passed
@marcosbento marcosbento deleted the feature/reduce_code_duplication branch December 8, 2023 18:08
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