tests/testthat/test-overwrite.R

test_that("methods_overwrite() works", {
  methods_overwrite()
  on.exit(methods_restore())

  out <-
    data.frame(a = 1) %>%
    mutate(b = 2)

  expect_false(duckdb$df_is_materialized(out))
})
duckdblabs/duckplyr documentation built on Nov. 6, 2024, 10 p.m.