tests/testthat/test-progress-handler-logger.R

test_that("loggerr_out", {
  bar <- new.env(parent = emptyenv())
  bar$id <- "id"
  bar$current <- 13
  bar$total <- 113
  local_mocked_bindings(Sys.time = function() .POSIXct(1623325865, tz = "CET"))
  expect_snapshot(logger_out(bar, "updated"))
})

Try the cli package in your browser

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

cli documentation built on April 12, 2025, 1:41 a.m.