Learn R Programming

covr (version 4.0.0)

percent_coverage: Provide percent coverage of package

Description

Calculate the total percent coverage from a coverage result object.

Usage

percent_coverage(x, ...)

Value

The total percentage as a numeric(1).

Arguments

x

the coverage object returned from package_coverage()

...

additional arguments passed to tally_coverage(), such as by = "branch" for the percentage of branches taken (see covr.branch_coverage).