tests/testthat/test_read_data_entity_sizes.R

context("Read data entity sizes")

testthat::test_that("read_data_entity_sizes() works", {
  packageId <- "knb-lter-cdr.711.1"
  vcr::use_cassette("read_data_entity_sizes", {
    res <- read_data_entity_sizes(packageId)
  })
  expect_equal(class(res), "data.frame")
  expect_true(all(names(res) %in% c("entityId", "size")))
  expect_true(nrow(res) > 0)
})

Try the EDIutils package in your browser

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

EDIutils documentation built on Oct. 11, 2023, 1:08 a.m.