-
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
A kindof trivial test addition to help debug #279. #283
Conversation
Doesn't hurt to test our utils but I'm mostly interested in the change in coverage for the utils.cpp file.
REQUIRE_NOTHROW(assert_can_open_file(path.c_str(), "a+")); | ||
|
||
REQUIRE_THROWS_AS(assert_can_open_file(path.c_str(), "NONEXISTANT_FILE_MODE"), | ||
std::runtime_error); |
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.
One could argue that this is pointless: I'm using an std::stringstream
to test a function that basically wraps fopen
. 🙃
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #283 +/- ##
==========================================
+ Coverage 48.09% 48.18% +0.09%
==========================================
Files 63 63
Lines 7804 7803 -1
==========================================
+ Hits 3753 3760 +7
+ Misses 4051 4043 -8
☔ View full report in Codecov by Sentry. |
From the
From the ... didn't learn as much as I had hoped. |
Almost not worth your time, but @willGraham01 this may as well go in if you can spare 30 secs to review. |
Doesn't hurt to test our utils but I'm mostly interested in the change in coverage for the utils.cpp file.