test_srcrefs: Extract test srcref objects

View source: R/srcrefs.R

test_srcrefsR 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)


covtracer documentation built on Sept. 12, 2024, 7:40 a.m.