testing

0th

Percentile

Infrastructure for testing dplyr

Register testing sources, then use test_load() to load an existing data frame into each source. To create a new table in each source, use test_frame().

Keywords
internal
Usage
test_register_src(name, src)

test_register_con(name, ...)

src_test(name)

test_load(df, name = unique_table_name(), srcs = test_srcs$get(), ignore = character())

test_frame(..., srcs = test_srcs$get(), ignore = character())

Aliases
  • testing
  • test_register_src
  • test_register_con
  • src_test
  • test_load
  • test_frame
Examples
# NOT RUN {
test_register_src("df", src_df(env = new.env()))
test_register_src("sqlite", src_sqlite(":memory:", create = TRUE))

test_frame(x = 1:3, y = 3:1)
test_load(mtcars)
# }
Documentation reproduced from package dbplyr, version 1.4.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.