tests/testthat/test-req-policy.R

test_that("as_callback validates inputs", {
  expect_snapshot(as_callback(function(x) 2, 2, "foo"), error = TRUE)
})
r-lib/httr2 documentation built on Jan. 11, 2025, 10:21 a.m.