CLI11 icon indicating copy to clipboard operation
CLI11 copied to clipboard

add test for enumeration conversion

Open phlptp opened this issue 7 months ago • 3 comments

Looking into #1330,

adding a test for the described issue.

phlptp avatar Apr 18 '26 13:04 phlptp

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.

codecov[bot] avatar Apr 18 '26 13:04 codecov[bot]

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; |

oscarpeer-design avatar Jun 02 '26 20:06 oscarpeer-design

That's allowed, but yes, it's tripping up an optional rule.

henryiii avatar Jun 03 '26 00:06 henryiii