Skip to content

Commit

Permalink
Start tests for arrow api
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Apr 11, 2024
1 parent c28f180 commit 4a18fa2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/testthat/test-bq-download.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,20 @@ test_that("errors when table is known to be incomplete", {
)
})

# api = "arrow" ----------------------------------------------------------------

test_that("check_api respects inputs", {
expect_equal(check_api("arrow"), "arrow")
expect_equal(check_api("json"), "json")
})

test_that("uses arrow api if bigrquerystorage installed", {
expect_equal(check_api(), "arrow")

local_mocked_bindings(is_installed = function(...) FALSE)
expect_equal(check_api(), "json")
})

# helpers around row and chunk params ------------------------------------------

test_that("set_row_params() works ", {
Expand Down

0 comments on commit 4a18fa2

Please sign in to comment.