inst/templates/test-throw.R

testthat::context("Testing fakepack:::throw()")
testthat::test_that("throw the fakepack exception", {
                        error_message <- "test error"
                        testthat::expect_error(fakepack:::throw("test error"),
                                               error_message)
}
)

Try the fakemake package in your browser

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

fakemake documentation built on Aug. 16, 2023, 1:09 a.m.