File: test-curl_verbose.R

package info (click to toggle)
r-cran-crul 1.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,620 kB
  • sloc: sh: 13; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 385 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
})