Skip to contents

Convert a coverage dataset to a list

Usage

coverage_to_list(x = package_coverage())

Arguments

x

a coverage dataset, defaults to running package_coverage().

Value

A list with two components: filecoverage, a named numeric vector with the percentage of lines covered in each file, and totalcoverage, the percentage of lines covered in the whole package. Both are rounded to two decimal places.