test_srcrefs {covtracer}R Documentation

Extract test srcref objects

Description

Extract test srcref objects

Usage

test_srcrefs(x)

## S3 method for class 'coverage'
test_srcrefs(x)

Arguments

x

A package_coverage coverage object, from which the test srcrefs are extracted.

Value

A list_of_srcref

See Also

as.data.frame.list_of_srcref

Other srcrefs: pkg_srcrefs(), trace_srcrefs()

Examples

options(covr.record_tests = TRUE)
pkg_path <- system.file("examplepkg", package = "covtracer")
cov <- covr::package_coverage(pkg_path)
test_srcrefs(cov)


[Package covtracer version 0.0.1 Index]