tests/testthat/test-doctest-onetime_message_confirm.R

# Generated by doctest: do not edit by hand
# Please edit file in R/messages.R

test_that("Doctest: onetime_message_confirm", {
  # Created from @doctest for `onetime_message_confirm`
  # Source file: R/messages.R
  # Source line: 110
  oo <- options(onetime.dir = tempdir(check = TRUE))
  id <- sample(10000L, 1L)
  expect_message(onetime_message_confirm("A message to show one or more times",
    id = id), "A message")
  onetime_reset(id = id)
  options(oo)
})
hughjonesd/onetime documentation built on Jan. 24, 2025, 2:49 p.m.