powered by
Extract a matrix used to relate test code to the traces that each test evaluates.
test_trace_mapping(x)
A data.frame with one record for each line of code executed, with variables:
data.frame
The index of the test that was executed, reflecting the order in which tests are executed
The call stack depth when the coverage trace was evaluated
The index of the expression evaluated by each test. This can be used to recover an order of trace execution for a given test index
The index of the coverage trace that was evaluated
A coverage object produced with options(covr.record_tests = TRUE).
coverage
options(covr.record_tests = TRUE)
srcrefs_df srcrefs
options(covr.record_tests = TRUE) pkg_path <- system.file("examplepkg", package = "covtracer") cov <- covr::package_coverage(pkg_path) test_trace_mapping(cov)
Run the code above in your browser using DataLab