tests/testthat/test-req-policy.R

test_that("as_callback validates inputs", {
  expect_snapshot(as_callback(function(x) 2, 2, "foo"), error = TRUE)
})

Try the httr2 package in your browser

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

httr2 documentation built on Nov. 14, 2023, 5:08 p.m.