tests/testthat/test_validity.R

test_that("validity functions work", {
    OK <- ensembldb:::dbHasRequiredTables(dbconn(edb))
    expect_true(OK)
    ## Check the tables
    OK <- ensembldb:::dbHasValidTables(dbconn(edb))
    expect_true(OK)
})

test_that("validateEnsDb works", {
    expect_true(ensembldb:::validateEnsDb(edb))
})

test_that("compareProteins works", {
    if (hasProteinData(edb)) {
        res <- ensembldb:::compareProteins(edb, edb)
        expect_equal(res, "OK")
    }
})

Try the ensembldb package in your browser

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

ensembldb documentation built on Nov. 8, 2020, 4:57 p.m.