View source: R/get_foo_coverage.R
| get_foo_coverage | R Documentation |
Get coverage by function
get_foo_coverage(foo_folder, test_folder)
foo_folder |
folder containing functions |
test_folder |
folder containing tests |
a dataframe with a column for functions and a column for coverage
# Example takes more than 5 seconds to run
if(require(testthat)) {
folder_path1 <- assertHE_example("example_project/R")
folder_path2 <- assertHE_example("example_project/tests/testthat")
get_foo_coverage(
foo_folder = folder_path1,
test_folder = folder_path2
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.