Skip to content

Commit 08fc825

Browse files
committed
adjust nocov to what they really should cover
1 parent b3e0166 commit 08fc825

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
@@ -452,17 +452,17 @@ SEXP dogroups(SEXP dt, SEXP dtcols, SEXP groups, SEXP grpcols, SEXP jiscols, SEX
452452
// could potentially refactor to use fread's progress() function, however we would lose some information in favor of simplicity.
453453
double now;
454454
if (showProgress && (now=wallclock())>=nextTime) {
455+
// # nocov start. Requires long-running test case
455456
double avgTimePerGroup = (now-startTime)/(i+1);
456457
int ETA = (int)(avgTimePerGroup*(ngrp-i-1));
457458
if (hasPrinted || ETA >= 0) {
458-
// # nocov start. Requires long-running test case
459459
if (verbose && !hasPrinted) Rprintf(_("\n"));
460460
Rprintf("\r"); // # notranslate. \r is not internationalizable
461461
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);
462-
// # nocov end
463462
}
464463
nextTime = now+updateTime;
465464
hasPrinted = true;
465+
// # nocov end
466466
}
467467
ansloc += maxn;
468468
if (firstalloc) {

0 commit comments

Comments
 (0)