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")
    }
})
jorainer/ensembldb documentation built on Aug. 23, 2024, 1:16 p.m.