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

patch: do not issue spurious warning removing a file in dry-run #71

Merged
merged 3 commits into from Feb 11, 2024

Conversation

shannonbooth
Copy link
Owner

Since dry run was not writing to the output file, the file size was
being determined as non-empty. To fix this, simply check for this on the
temporary file which has been written to, even on a dry run.

Since dry run was not writing to the output file, the file size was
being determined as non-empty. To fix this, simply check for this on the
temporary file which has been written to, even on a dry run.
This is no longer needed now that we are using the C FILE* overload of
this function.
@codecov-commenter
Copy link

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (6059f85) 89.69% compared to head (5ed2694) 89.89%.

Files Patch % Lines
src/system.cpp 50.00% 1 Missing and 1 partial ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #71      +/-   ##
==========================================
+ Coverage   89.69%   89.89%   +0.20%     
==========================================
  Files          19       19              
  Lines        2048     2049       +1     
  Branches      874      870       -4     
==========================================
+ Hits         1837     1842       +5     
+ Misses         77       75       -2     
+ Partials      134      132       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@shannonbooth shannonbooth merged commit 47e1729 into main Feb 11, 2024
10 of 12 checks passed
@shannonbooth shannonbooth deleted the remove-file-dry-run branch February 11, 2024 00:55
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