Skip to content

Commit d6fb16c

Browse files
committed
adjust nocov to what they really should cover
1 parent ce97148 commit d6fb16c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/dogroups.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,17 +451,17 @@ SEXP dogroups(SEXP dt, SEXP dtcols, SEXP groups, SEXP grpcols, SEXP jiscols, SEX
451451
// could potentially refactor to use fread's progress() function, however we would lose some information in favor of simplicity.
452452
double now;
453453
if (showProgress && (now=wallclock())>=nextTime) {
454+
// # nocov start. Requires long-running test case
454455
double avgTimePerGroup = (now-startTime)/(i+1);
455456
int ETA = (int)(avgTimePerGroup*(ngrp-i-1));
456457
if (hasPrinted || ETA >= 0) {
457-
// # nocov start. Requires long-running test case
458458
if (verbose && !hasPrinted) Rprintf(_("\n"));
459459
Rprintf("\r"); // # notranslate. \r is not internationalizable
460460
Rprintf(_("Processed %d groups out of %d. %.0f%% done. Time elapsed: %ds. ETA: %ds."), i+1, ngrp, 100.0*(i+1)/ngrp, (int)(now-startTime), ETA);
461-
// # nocov end
462461
}
463462
nextTime = now+1;
464463
hasPrinted = true;
464+
// # nocov end
465465
}
466466
ansloc += maxn;
467467
if (firstalloc) {

0 commit comments

Comments
 (0)