tests/testthat/test-skip_scope.R

#! This file was automatically produced by the testextra package.
#! Changes will be overwritten.

context('tests extracted from file `skip_scope.R`')
#line 34 "R/skip_scope.R"
test_that('skip_scope', {#@testing
    fun <- function()find_scope()
    environment(fun) <- globalenv()
    skip <- skip_scope(fun)
    val <- skip()
    cat(val)
    expect_identical(val, character())
})

Try the pkgcond package in your browser

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

pkgcond documentation built on April 28, 2021, 9:06 a.m.