tests/testthat/helper-hybrid.R

expect_hybrid <- function(data, expr, info = NULL, label = NULL) {
  expr <- enquo(expr)
  expect_true(hybrid_call(data, !!expr), info = info, label = label)
}

expect_not_hybrid <- function(data, expr, info = NULL, label = NULL) {
  expr <- enquo(expr)
  expect_false(hybrid_call(data, !!expr), info = info, label = label)
}
olascodgreat/samife documentation built on May 13, 2019, 6:11 p.m.