tests/testthat/test-query_1.R

with_mock_dir('query_1_req', {
  test_that("Can run mid level query...", {

    expect_true(is_rosv(osv_query_1(name = 'readxl', ecosystem = 'CRAN', parse = FALSE)))
    expect_true(is_rosv(osv_query_1(name = 'readxl', ecosystem = 'CRAN', parse = TRUE)))
    expect_true(is_rosv(osv_query_1(name = 'readxl', ecosystem = 'CRAN', cache = TRUE)))
    expect_true(is_rosv(osv_query_1(name = 'readxl', ecosystem = 'CRAN', cache = FALSE)))

  })
})

Try the rosv package in your browser

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

rosv documentation built on May 29, 2024, 2:58 a.m.