tests/testthat/test-curl_verbose.R

test_that("curl_verbose", {
  skip_on_cran()

  # is a function
  expect_is(curl_verbose, "function")
  
  # & returns a function
  expect_is(curl_verbose(), "function")

  # params
  expect_named(formals(curl_verbose),
    c("data_out", "data_in", "info", "ssl"))
  expect_named(formals(curl_verbose()), c("type", "msg"))

  # used in a request
  ## FIXME: not sure how to do this
})

Try the crul package in your browser

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

crul documentation built on May 31, 2023, 5:42 p.m.