Add (void) cast to all EXPECT_THROW calls in test_railwaynetwork.cpp#154
Conversation
Agent-Logs-Url: https://github.com/cda-tum/mtct/sessions/6940316d-3f99-4d5c-9b69-bd799a2c56a7 Co-authored-by: sengels-tum <112686201+sengels-tum@users.noreply.github.com>
sengels-tum
left a comment
There was a problem hiding this comment.
lgtm (if it compiles)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 2026-refactor-problem-instance #154 +/- ##
==============================================================
Coverage 93.8% 93.8%
==============================================================
Files 11 11
Lines 1468 1468
Branches 290 290
==============================================================
Hits 1378 1378
Misses 90 90 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
pre-commit.ci autofix |
6671c37
into
2026-refactor-problem-instance
Cpp-Linter Report
|
Description
All
EXPECT_THROWcalls intest/test_railwaynetwork.cpplacked the(void)cast on the expression argument, which suppresses unused-value/nodiscard warnings. 49 occurrences were updated; calls that already had(void)were left unchanged.Before:
After:
Multi-line forms where the expression appears on the next line were handled correctly:
Checklist:
Original prompt