Skip to content

Commit

Permalink
Add more nocov
Browse files Browse the repository at this point in the history
  • Loading branch information
philippechataignon committed Jan 13, 2025
1 parent 1ec72f0 commit 3eb198c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/fwrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -1097,8 +1097,8 @@ void fwriteMain(fwriteMainArgs args)
// Finished parallel region and can call R API safely now.
if (hasPrinted) {
if (!failed) { // clear the progress meter
DTPRINT("\r "
" \r\n");
DTPRINT("\r " // #nocov
" \r\n"); // #nocov
} else { // don't clear any potentially helpful output before error
DTPRINT("\n"); // # nocov
}
Expand All @@ -1122,15 +1122,15 @@ void fwriteMain(fwriteMainArgs args)
// If a write failed, the line above tries close() to clean up, but that might fail as well. So the
// '&& !failed' is to not report the error as just 'closing file' but the next line for more detail
// from the original error.
if (failed) {
if (failed) { // #nocov
#ifndef NOZLIB
if (failed_compress)
STOP(_("zlib %s (zlib.h %s) deflate() returned error %d Z_FINISH=%d Z_BLOCK=%d. %s"), // # nocov
zlibVersion(), ZLIB_VERSION, failed_compress, Z_FINISH, Z_BLOCK, // # nocov
verbose ? _("Please include the full output above and below this message in your data.table bug report.") // # nocov
: _("Please retry fwrite() with verbose=TRUE and include the full output with your data.table bug report.")); // # nocov
#endif
if (failed_write)
if (failed_write) // #nocov
STOP("%s: '%s'", strerror(failed_write), args.filename); // # nocov
}
}

0 comments on commit 3eb198c

Please sign in to comment.