Skip to content

Commit cf92fc2

Browse files
committed
manual codecov confirmation for nocov exceptions
1 parent 9aad8bc commit cf92fc2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

R/frollapply.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ frollapply = function(X, N, FUN, ..., by.column=TRUE, fill=NA, align=c("right","
290290
jobs = vector("integer", ths)
291291
for (th in seq_len(ths)) {
292292
jobs[th] = parallel::mcparallel({
293+
#catf("%d\n", 4, "")
293294
# nocov start ## fork processes seem not to be tracked by codecov
294295
setDTthreads(1L) ## disable nested parallelism
295296
lapply(ii[[th]], ## loops over indexes for that thread

src/frollapply.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ SEXP memcpyVector(SEXP dest, SEXP src, SEXP offset, SEXP size) {
4141
}
4242
// # nocov start ## does not seem to be reported to codecov most likely due to running in a fork, I manually debugged that it is being called when running froll.Rraw
4343
SEXP memcpyDT(SEXP dest, SEXP src, SEXP offset, SEXP size) {
44+
//Rprintf("%d",1); // manual code coverage to confirm it is reached when marking nocov
4445
size_t o = INTEGER(offset)[0] - INTEGER(size)[0];
4546
int ncol = LENGTH(dest), nrow = LENGTH(VECTOR_ELT(dest, 0));
4647
SEXP d, s;
@@ -64,6 +65,7 @@ SEXP memcpyVectoradaptive(SEXP dest, SEXP src, SEXP offset, SEXP size) {
6465
}
6566
// # nocov start ## does not seem to be reported to codecov most likely due to running in a fork, I manually debugged that it is being called when running froll.Rraw
6667
SEXP memcpyDTadaptive(SEXP dest, SEXP src, SEXP offset, SEXP size) {
68+
//Rprintf("%d",2); // manual code coverage to confirm it is reached when marking nocov
6769
size_t oi = INTEGER(offset)[0];
6870
int nrow = INTEGER(size)[oi-1];
6971
size_t o = oi - nrow;
@@ -87,6 +89,7 @@ SEXP setgrowable(SEXP x) {
8789
} else {
8890
// # nocov start ## does not seem to be reported to codecov most likely due to running in a fork, I manually debugged that it is being called when running froll.Rraw
8991
for (int i=0; i<LENGTH(x); ++i) {
92+
//Rprintf("%d",3); // manual code coverage to confirm it is reached when marking nocov
9093
SEXP col = VECTOR_ELT(x, i);
9194
SET_GROWABLE_BIT(col);
9295
SET_TRUELENGTH(col, LENGTH(col));

0 commit comments

Comments
 (0)