Skip to content

Commit 3eb198c

Browse files
Add more nocov
1 parent 1ec72f0 commit 3eb198c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/fwrite.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,8 +1097,8 @@ void fwriteMain(fwriteMainArgs args)
10971097
// Finished parallel region and can call R API safely now.
10981098
if (hasPrinted) {
10991099
if (!failed) { // clear the progress meter
1100-
DTPRINT("\r "
1101-
" \r\n");
1100+
DTPRINT("\r " // #nocov
1101+
" \r\n"); // #nocov
11021102
} else { // don't clear any potentially helpful output before error
11031103
DTPRINT("\n"); // # nocov
11041104
}
@@ -1122,15 +1122,15 @@ void fwriteMain(fwriteMainArgs args)
11221122
// If a write failed, the line above tries close() to clean up, but that might fail as well. So the
11231123
// '&& !failed' is to not report the error as just 'closing file' but the next line for more detail
11241124
// from the original error.
1125-
if (failed) {
1125+
if (failed) { // #nocov
11261126
#ifndef NOZLIB
11271127
if (failed_compress)
11281128
STOP(_("zlib %s (zlib.h %s) deflate() returned error %d Z_FINISH=%d Z_BLOCK=%d. %s"), // # nocov
11291129
zlibVersion(), ZLIB_VERSION, failed_compress, Z_FINISH, Z_BLOCK, // # nocov
11301130
verbose ? _("Please include the full output above and below this message in your data.table bug report.") // # nocov
11311131
: _("Please retry fwrite() with verbose=TRUE and include the full output with your data.table bug report.")); // # nocov
11321132
#endif
1133-
if (failed_write)
1133+
if (failed_write) // #nocov
11341134
STOP("%s: '%s'", strerror(failed_write), args.filename); // # nocov
11351135
}
11361136
}

0 commit comments

Comments
 (0)