tests/testthat/test-os-name.R

test_that("unknown os name", {
  mockery::stub(os_name, "utils::sessionInfo", list(running = NULL))
  expect_equal(os_name(), NA_character_)
})

Try the sessioninfo package in your browser

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

sessioninfo documentation built on Dec. 11, 2021, 9:07 a.m.