inst/unitTests/test_BiocParallelParam.R

test_BiocParallelParam <-
    function()
{
    ## BiocParallelParam is a virtual class
    checkException(BiocParallel:::.BiocParallelParam(), silent=TRUE)

    ## minimal non-virtual class & constructor
    .A <- setRefClass("A", contains = "BiocParallelParam")
    A <- function(...) {
        prototype <- .prototype_update(.BiocParallelParam_prototype, ...)
        do.call(.A, prototype)
    }

    ## no arg constructor
    checkTrue(validObject(A()))

    ## non-default inherited slot
    checkIdentical("WARN", bpthreshold(A(threshold = "WARN")))
}

Try the BiocParallel package in your browser

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

BiocParallel documentation built on Nov. 8, 2020, 5:46 p.m.