current_test_index: Retrieve the index for the test in '.counters$tests'

View source: R/trace_tests.R

current_test_indexR Documentation

Retrieve the index for the test in .counters$tests

Description

If the test was encountered before, the index will be the index of the test in the logged tests list. Otherwise, the index will be the next index beyond the length of the tests list.

Usage

current_test_index()

Value

An integer index for the test call


r-lib/covr documentation built on April 9, 2024, 2:14 p.m.