test_srcrefs_df: Create a data.frame of coverage test srcref objects
Description
Extract unit test srcrefs from a
coverage object. A test name will be
derived from the test source code, preferrably from a written annotation, but
otherwise falling back to using a code snippet. srcrefs are unique for
each expression executed within a testing suite.
Usage
test_srcrefs_df(x)
Value
A data.frame of test srcrefs extracted from a
coverage object. Contains one record for each srcref with
variables:
name
A character test description. For testthat tests, the
desc parameter will be used, otherwise a snippet of code will be
used for the test name
srcref
A srcref object describing the location of the test
test_type
A character indicating the structure of the test. One of
"testthat", "call" or NULL
Arguments
x
A package_coverage coverage object, from which
the name of the package used is extracted.
See Also
srcrefs test_trace_mapping
Other srcrefs_df:
pkg_srcrefs_df(),
trace_srcrefs_df()