tests/testthat/test-function_review.R

test_that("function_review works as expected", {
  fr <- function_review(system.file("testpkg", package = "docreview"))
  expect_equal(fr$failures, 1)
  expect_equal(fr$warnings, 0)
  expect_equal(fr$details$exports_examples, c(add = TRUE, deduct = FALSE))
})

Try the docreview package in your browser

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

docreview documentation built on Aug. 17, 2021, 9:06 a.m.