/usr/share/doc/r-cran-crul/tests/testthat/test-handle.R is in r-cran-crul 0.5.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | context("handle")
test_that("handle - works", {
aa <- handle("https://httpbin.org")
expect_is(aa, "list")
expect_is(aa$url, "character")
expect_is(aa$handle, "curl_handle")
expect_match(aa$url, "https")
})
test_that("handle fails well", {
expect_error(handle(), "argument \"url\" is missing")
})
|