tests/testthat/test-bioconductor.R

test_that("on_bioconductor() works as expected", {
  withr::with_envvar(
    new = c("IS_BIOC_BUILD_MACHINE" = "true"),
    expect_true(on_bioconductor())
  )

  withr::with_envvar(
    new = c("IS_BIOC_BUILD_MACHINE" = NA),
    expect_false(on_bioconductor())
  )
})

Try the ami package in your browser

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

ami documentation built on April 4, 2025, 2:39 a.m.