tests/testthat/test-class_resources_repository_cas.R

tar_test("create tar_resources_repository_cas object", {
  x <- resources_repository_cas_init(envvars = c(x = "x"))
  expect_silent(resources_validate(x))
})

tar_test("print tar_resources_repository_cas object", {
  x <- resources_repository_cas_init(envvars = c(x = "x"))
  out <- utils::capture.output(print(x))
  expect_true(any(grepl("tar_resources_repository_cas", out)))
})

Try the targets package in your browser

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

targets documentation built on Oct. 3, 2024, 1:11 a.m.