Skip to content

Commit

Permalink
how many does file_coverage return?
Browse files Browse the repository at this point in the history
  • Loading branch information
radbasa committed Oct 2, 2023
1 parent 8e20607 commit d2140ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/testthat/test-box.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ test_that("box module coverage is reported", {
source_files = "app/app.R",
test_files = list.files("tests/testthat", full.names = TRUE)))
print(list.files("tests/testthat", full.names = TRUE))
print(str(file_coverage(
source_files = "app/app.R",
test_files = list.files("tests/testthat", full.names = TRUE))))
expect_equal(cov$value, c(5, 2, 3, 3, 1, 1))
expect_equal(cov$first_line, c(5, 6, 8, 13, 5, 8))
expect_equal(cov$last_line, c(5, 6, 8, 13, 5, 8))
Expand Down

0 comments on commit d2140ee

Please sign in to comment.