R/mock_bindings.R

Defines functions now

################################################################
# Base function binding for mocking:
# https://testthat.r-lib.org/reference/local_mocked_bindings.html#base-functions
################################################################

# re-assign Sys.time for mocking as setting a NULL binding will break the paginator
now <- function() {
  Sys.time()
}

get0 <- NULL

Try the paws.common package in your browser

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

paws.common documentation built on Aug. 8, 2025, 7:23 p.m.