environment_coverage: Calculate coverage of an environment

Description Usage Arguments

View source: R/covr.R

Description

Calculate coverage of an environment

Usage

1
2
environment_coverage(env = parent.frame(), test_files,
  line_exclusions = NULL, function_exclusions = NULL)

Arguments

env

The environment to be instrumented.

test_files

Character vector of test files with code to test the functions

line_exclusions

a named list of files with the lines to exclude from each file.

function_exclusions

a vector of regular expressions matching function names to exclude. Example print\\. to match print methods.


r-lib/covr documentation built on Dec. 13, 2018, 2:18 p.m.