View source: R/run_covr_skip_dt_nstf.R
| dt_compute_untested_functions | R Documentation |
Identifies package functions that were not executed by the provided coverage
object. A function is considered untested if no line within
its srcref span (from start_line to end_line) has a
positive execution count in covr::tally_coverage().
dt_compute_untested_functions(pkg_name, coverage)
pkg_name |
character(1). The package name whose namespace is inspected
for functions ( |
coverage |
A coverage object as returned by |
data.frame with one row per untested function and columns:
Function symbol in the package namespace.
Absolute, normalized path to the source file containing the function.
Start line (inclusive) from the function's srcref.
End line (inclusive) from the function's srcref.
Returns an empty data.frame with these columns if (a) the coverage table is
empty, (b) no functions have an srcref, or (c) all functions had at
least one executed line within their span.
Functions without an srcref are skipped.
Files are matched by basename between the coverage table and the
function’s srcref source path to make the join resilient to
differing absolute paths in temporary build trees.
A line is considered executed when its coverage value is a finite
number greater than zero.
tally_coverage
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.