Skip to content
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

Merged
merged 1 commit into from
May 5, 2023

Conversation

samcunliffe
Copy link
Member

Doesn't hurt to test our utils but I'm mostly interested in the change in coverage for the utils.cpp file.

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);
Copy link
Member Author

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
Copy link

codecov bot commented May 4, 2023

Codecov Report

Patch coverage: 60.00% and project coverage change: +0.09 🎉

Comparison is base (d5a14c0) 48.09% compared to head (9d77494) 48.18%.

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     
Impacted Files Coverage Δ
tdms/include/arrays.h 26.75% <0.00%> (ø)
tdms/src/arrays.cpp 92.08% <0.00%> (ø)
tdms/src/utils.cpp 100.00% <ø> (+88.88%) ⬆️
tdms/src/fields/td_field_exporter_2d.cpp 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@samcunliffe
Copy link
Member Author

samcunliffe commented May 4, 2023

Patch coverage: 60.00% and project coverage change: -23.74 ⚠️

Impacted Files Coverage Δ
tdms/include/arrays.h 31.62% <0.00%> (+4.87%) ⬆️
tdms/src/arrays.cpp 92.06% <0.00%> (-0.03%) ⬇️
tdms/src/utils.cpp 100.00% <ø> (+88.88%) ⬆️
tdms/src/fields/td_field_exporter_2d.cpp 100.00% <100.00%> (ø)

From the ubuntu-latest build ☝️

Patch coverage: 60.00% and project coverage change: +0.09 🎉

Impacted Files Coverage Δ
tdms/include/arrays.h 26.75% <0.00%> (ø)
tdms/src/arrays.cpp 92.08% <0.00%> (ø)
tdms/src/utils.cpp 100.00% <ø> (+88.88%) ⬆️
tdms/src/fields/td_field_exporter_2d.cpp 100.00% <100.00%> (ø)

From the macos-latest build ☝️

... didn't learn as much as I had hoped.

@samcunliffe
Copy link
Member Author

Almost not worth your time, but @willGraham01 this may as well go in if you can spare 30 secs to review.

@samcunliffe samcunliffe merged commit 3ab1e2d into main May 5, 2023
12 checks passed
@samcunliffe samcunliffe deleted the add-utils-test-for-debugging-279 branch May 5, 2023 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants