Learn R Programming

covtracer (version 0.0.2)

test_srcrefs: Extract test srcref objects

Description

Extract test srcref objects

Usage

test_srcrefs(x)

# S3 method for coverage test_srcrefs(x)

Value

A list_of_srcref

Arguments

x

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

See Also

as.data.frame.list_of_srcref

Other srcrefs: pkg_srcrefs(), trace_srcrefs()

Examples

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

Run the code above in your browser using DataLab