covtracer0.0.2 package

Contextualizing Tests

as_list_of_srcref

Create an S3 list of srcref objects

as_test_desc

Wrap object in test description derivation data

as.data.frame.list_of_srcref

Coerce a list_of_srcref object to a data.frame

as.package

A simple alternative to devtools::as.package

coverage_check_has_recorded_tests

Check that the coverage object retains testing information

coverage_get_tests

Retrieve test traces from a coverage object

coverage_has_recorded_tests

Test that the coverage object retains testing information

expr_str

Convert an expression, call or symbol to a single-line string

flat_map_srcrefs

Map srcrefs over an iterable object, Filtering non-srcref results

format.list_of_srcref

Format a list_of_srcref object

get_namespace_object_names

Get namespace exports, filtering methods tables and definitions

getSrcFilepath

Get the full path to the srcref file

is_srcref

Test whether an object is a srcref object

join_on_containing_srcrefs

Join srcref data.frames by intersection of srcref spans

match_containing_srcrefs

Match srcrefs against srcrefs that contain them

new_empty_test_trace_tally

Build an empty covr-style test trace mapping

obj_namespace_name

Get namespace export namespace name

package_check_has_keep_source

Verify that the package collection contains srcref information

pkg_srcrefs_df

Create a data.frame of package srcref objects

pkg_srcrefs

Extract all the srcref objects of objects within a package namespace

Rd_df

Create a tabular representation of man file information

srcref_expr

Parse the expression associated with a srcref

srcref_str

Convert a srcref into a string

srcrefs

Retrieve srcrefs

test_description_test_that_describe_it

Parse the test description from a it call

test_description_test_that_describe

Parse the test description from a describe call

test_description_test_that

Parse the test description from a test_that call

test_description

Parse a test description from the calling expression

test_srcrefs_df

Create a data.frame of coverage test srcref objects

test_srcrefs

Extract test srcref objects

test_trace_df

Build a traceability matrix that links documented behaviors to unit te...

test_trace_mapping

Create a data.frame mapping tests to coverage traces

trace_srcrefs_df

Create a data.frame of coverage trace srcref objects

trace_srcrefs

Extract srcref objects from coverage object traces

with_pseudo_srcref

For consistency, stub calls with srcref-like attributes

Dissects a package environment or 'covr' coverage object in order to cross reference tested code with the lines that are evaluated, as well as linking those evaluated lines to the documentation that they are described within. Connecting these three pieces of information provides a mechanism of linking tests to documented behaviors.

  • Maintainer: Szymon Maksymiuk
  • License: MIT + file LICENSE
  • Last published: 2026-01-30