tests/testthat/test-RC.R

context("RC")
test_that("RC methods coverage is reported", {
  cov <- as.data.frame(package_coverage("TestRC"))

  expect_equal(cov$value, c(5, 2, 3, 1, 1))
  expect_equal(cov$first_line, c(5, 6, 8, 17, 20))
  expect_equal(cov$last_line, c(5, 6, 8, 17, 20))
})

Try the covr package in your browser

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

covr documentation built on Nov. 9, 2023, 9:07 a.m.