Assess a package code coverage using the `covr` package

assess_covr_coverage(x, ...)

Arguments

x

a pkg_ref package reference object

...

additional arguments passed on to S3 methods, rarely used

Value

a pkg_metric containing a list containing fields 'filecoverage' and 'totalcoverage' containing a named numeric vector of file unit test coverage and a singular numeric value representing overall test coverage respectively.

Examples

if (FALSE) {
assess_covr_coverage(pkg_ref("riskmetric"))
}