environment_coverage: Calculate coverage of an environment

View source: R/covr.R

environment_coverageR Documentation

Calculate coverage of an environment

Description

Calculate coverage of an environment

Usage

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.


covr documentation built on Nov. 9, 2023, 9:07 a.m.