Skip to content

Commit 0a9089a

Browse files
nocov very-difficult-to-test lines
1 parent 5462a20 commit 0a9089a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

R/cedta.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ cedta.pkgEvalsUserCode = c("gWidgetsWWW","statET","FastRWeb","slidify","rmarkdow
5858
nsname = getNamespaceName(ns)
5959
if (nsname == "data.table") return(TRUE)
6060

61-
if ("data.table" %chin% names(getNamespaceImports(ns))) return(TRUE)
61+
if ("data.table" %chin% names(getNamespaceImports(ns))) return(TRUE) # nocov
6262

63-
if (isTRUE(ns$.datatable.aware)) return(TRUE)
63+
if (isTRUE(ns$.datatable.aware)) return(TRUE) # nocov
6464

6565
sc <- sys.calls()
6666
if (nsname == "utils") {
67-
if (exists("debugger.look", parent.frame(n+1L))) return(TRUE)
67+
if (exists("debugger.look", parent.frame(n+1L))) return(TRUE) # nocov
6868

6969
# 'example' for #2972
7070
if (length(sc) >= 8L && sc[[length(sc) - 7L]] %iscall% 'example') return(TRUE)
@@ -76,9 +76,9 @@ cedta.pkgEvalsUserCode = c("gWidgetsWWW","statET","FastRWeb","slidify","rmarkdow
7676
if (.any_sd_queries_in_stack(sc)) return(TRUE) # e.g. lapply() where "piped-in" j= arg has .SD[]
7777
}
7878

79-
if (nsname %chin% cedta.pkgEvalsUserCode && .any_eval_calls_in_stack(sc)) return(TRUE)
79+
if (nsname %chin% cedta.pkgEvalsUserCode && .any_eval_calls_in_stack(sc)) return(TRUE) # nocov
8080

81-
if (nsname %chin% cedta.override) return(TRUE)
81+
if (nsname %chin% cedta.override) return(TRUE) # nocov
8282

8383
# both ns$.Depends and get(.Depends,ns) are not sufficient
8484
pkg_ns = paste("package", nsname, sep=":")

0 commit comments

Comments
 (0)