File: new_test_counter.Rd

package info (click to toggle)
r-cran-covr 3.6.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,132 kB
  • sloc: javascript: 238; cpp: 74; ansic: 48; xml: 41; sh: 18; makefile: 11
file content (23 lines) | stat: -rw-r--r-- 892 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/trace_tests.R
\name{new_test_counter}
\alias{new_test_counter}
\title{Initialize a new test counter for a coverage trace}
\usage{
new_test_counter(key)
}
\arguments{
\item{key}{generated with \code{\link[=key]{key()}}}
}
\description{
Initialize a test counter, a matrix used to tally tests, their stack depth
and the execution order as the trace associated with \code{key} is hit. Each
test trace is an environment, which allows assignment into a pre-allocated
\code{tests} matrix with minimall reallocation.
}
\details{
The \code{tests} matrix has columns \code{tests}, \code{depth} and \code{i},
corresponding to the test index (the index of the associated test in
\code{.counters$tests}), the stack depth when the trace is evaluated and the
number of traces that have been hit so far during test evaluation.
}