tests/testthat/test-espn_cfb_clear_cache.R

test_that("espn_cfb_clear_cache runs and returns invisibly", {
  skip_on_cran()

  # Returns NULL invisibly.
  expect_invisible(espn_cfb_clear_cache())
  expect_null(espn_cfb_clear_cache())

  # Idempotent -- safe to call whether or not the catalog helpers are
  # memoised (cache mode "off" leaves them un-memoised; forget() is then
  # skipped). Does not error in either case.
  expect_null(espn_cfb_clear_cache())
})

Try the cfbfastR package in your browser

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

cfbfastR documentation built on Aug. 24, 2026, 5:13 p.m.