RBuildIgnore/sandbox/mosaicIncubator/inst/tests/test-panicAttack.R

# context("Testing panicAttack")

test_that("nothing happens when nothing should",{
  conflicts <- panicAttack() 
  expect_that(length(conflicts),equals(0))
})

test_that("masked base functions are identified",{
  assign("c",function(x)x, envir=.GlobalEnv)
  conflicts <- panicAttack()
  expect_identical(conflicts,"c")
  panicAttack(fix=TRUE)
  conflicts <- panicAttack()
  expect_that(length(conflicts),equals(0))
})
ProjectMOSAIC/mosaic documentation built on Feb. 21, 2024, 2:11 a.m.