inst/unitTests/test_AllClasses.R

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)))
}

Try the ShortRead package in your browser

Any scripts or data that you put into this service are public.

ShortRead documentation built on Nov. 8, 2020, 8:02 p.m.