From d2140ee2ecd354d91d62100851c3e2061f29016c Mon Sep 17 00:00:00 2001 From: Rodrigo Basa Date: Mon, 2 Oct 2023 21:28:40 +0800 Subject: [PATCH] how many does file_coverage return? --- tests/testthat/test-box.R | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/testthat/test-box.R b/tests/testthat/test-box.R index ebc3352d..7f75adf2 100644 --- a/tests/testthat/test-box.R +++ b/tests/testthat/test-box.R @@ -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))