code_coverage: Calculate coverage of code directly
Description
This function is useful for testing, and is a thin wrapper around
file_coverage() because parseData is not populated properly
unless the functions are defined in a file.
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.
...
Additional arguments passed to file_coverage()
Parallel code
Code run in processes forked by parallel::mclapply(),
parallel::mcparallel() and related functions (not available on Windows)
is included in the coverage. While the code runs, parallel:::mcfork and
parallel:::mcexit are patched so that the forked processes save their
counts when they exit. To turn this off, set the option
covr.fix_parallel_mcexit or the environment variable
COVR_FIX_PARALLEL_MCEXIT to FALSE.