get_foo_coverage {assertHE} | R Documentation |
Get coverage by function
Description
Get coverage by function
Usage
get_foo_coverage(foo_folder, test_folder)
Arguments
foo_folder |
folder containing functions |
test_folder |
folder containing tests |
Value
a dataframe with a column for functions and a column for coverage
Examples
# 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
)
}
[Package assertHE version 1.0.0 Index]