get_foo_coverage: Get coverage by function

View source: R/get_foo_coverage.R

get_foo_coverageR 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
  )
}



assertHE documentation built on June 8, 2025, 10:08 a.m.