tests/testthat/test-bbox.R

test_that("bbox filter is reasonably fast", {
  testthat::skip_if_offline()
  skip_on_cran()

  bbox <- sf::st_bbox(c(xmin = -120.5, ymin = 35.5, xmax = -120.0, ymax = 36.0))
  timer <- bench::mark(iterations = 1, filter_gc = FALSE, {
    open_curtain("building", bbox)
  })

  expect_lt(timer$median, 30)
  expect_lt(timer$median, 1e6)
})

Try the overtureR package in your browser

Any scripts or data that you put into this service are public.

overtureR documentation built on April 4, 2025, 2:21 a.m.