-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fix: command_line review items & Coverity lints #69
Conversation
Codecov Report
@@ Coverage Diff @@
## main #69 +/- ##
==========================================
- Coverage 92.62% 92.01% -0.61%
==========================================
Files 47 47
Lines 3175 3208 +33
Branches 609 626 +17
==========================================
+ Hits 2941 2952 +11
- Misses 177 188 +11
- Partials 57 68 +11
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some nitpicks here and there, the one most bothersome is the string v. string view issue and the Qt-style implicit copy when iterating over map_t.
@dragonmux One more comment which I forgot to add: is there a way to force a test for those |
Pushed fixes for the various review items - thank you Amy! We've been contemplating the valueless_by_exception() problem and haven't yet thought of something - unfortunately. |
1877b9f
to
6b5290f
Compare
We'll rebase this and get this merged then, thank you 🙂 |
…lueless_by_exception() making its way into expressions it shouldn't
…a check for std::variant::valueless_by_exception()
… check for std::variant::valueless_by_exception()
…ions Catch2 can throw
…ving capacity in the result vectors
6b5290f
to
ae3b4e0
Compare
This PR addresses the review items bought up when code reviewing <substrate/command_line> with @freyjadomville. It also addresses several items found when running a Coverity scan such as missed handling of
std::variant::valueless_by_exception() == true
, resulting in possible exception throwing.Additionally, by request, this addresses some exception mishaps in affinity_t's tests too (again, found by Coverity). As we addressed those, we also cast the net a little broader and went after lints in other parts of the library to help reduce the Coverity footprint and improve the code quality.