tests/testthat/helper-functions.R

library(dplyr) # Load for use in all the tests

expect_error_free <- function(object) {
  expect_error(object, NA)
}

expect_all_cols_chr <- function(.data) {
  purrr::walk(.data, function(col) expect_type(col, "character"))
}
austensen/geoclient documentation built on Nov. 20, 2021, 11:12 p.m.