add test for enumeration conversion
Looking into #1330,
adding a test for the described issue.
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 99.76%. Comparing base (e4ee3af) to head (32b777f).
:warning: Report is 227 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #1332 +/- ##
===========================================
- Coverage 100.00% 99.76% -0.24%
===========================================
Files 17 19 +2
Lines 4546 5217 +671
Branches 0 1126 +1126
===========================================
+ Hits 4546 5205 +659
- Misses 0 12 +12
:umbrella: View full report in Codecov by Harness.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
Your tests are failing because variables are uninitialised:
/__w/CLI11/CLI11/tests/NewParseTest.cpp:687:11: error: variable 'color' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors]
687 | Color color;
| ^
/__w/CLI11/CLI11/tests/NewParseTest.cpp:688:11: error: variable 'other_color' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors]
688 | Color other_color;
|
That's allowed, but yes, it's tripping up an optional rule.