/usr/lib/R/site-library/ShortRead/unitTests/test_AllClasses.R is in r-bioc-shortread 1.36.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | test_AllClasses_STRAND_LEVELS <- function()
{
checkIdentical(ShortRead:::.STRAND_LEVELS, levels(strand()))
}
test_AllClasses_new <- function() {
nmspace <- getNamespace("ShortRead")
nms <- names(slot(getClass(".ShortReadBase", where=nmspace),
"subclasses"))
## 'new' with no additional arguments
ok <- Map(function(x) validObject(new(x)),
Filter(function(x) !slot(getClass(x, where=nmspace), "virtual"),
nms))
checkTrue(all(unlist(ok)))
}
|