Skip to content

Commit fa5967f

Browse files
committed
add nocov for region that only hits on non UTF8 systems
1 parent 0e82cf0 commit fa5967f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/test.data.table.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,12 +381,14 @@ test = function(num,x,y=TRUE,error=NULL,warning=NULL,message=NULL,output=NULL,no
381381
if (!isFALSE(requires_utf8)) {
382382
test_str = if (isTRUE(requires_utf8)) "\u00F1\u00FC\u3093" else requires_utf8
383383
if (!utf8_check(test_str)) {
384+
# nocov start
384385
last_utf8_skip = get0("last_utf8_skip", parent.frame(), ifnotfound=0, inherits=TRUE)
385386
if (num - last_utf8_skip >= 1) {
386387
catf("Test %s skipped because required UTF-8 symbols cannot be represented in native encoding.\n", num)
387388
}
388389
assign("last_utf8_skip", num, parent.frame(), inherits=TRUE)
389390
return(invisible(TRUE))
391+
# nocov end
390392
}
391393
}
392394
# Usage:

0 commit comments

Comments
 (0)