tests/testthat/test-topics.R

test_that("missing title generates useful message", {
  block <- "
    #' @name foo
    NULL
  "
  expect_snapshot(roc_proc_text(rd_roclet(), block))
})

Try the roxygen2 package in your browser

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

roxygen2 documentation built on Dec. 9, 2022, 1:09 a.m.