Extract the results for a specific test input
Value
If the index is valid, a data frame containing the following columns and attributes:
- res
One of "OK", "FAIL", "WARN" or "SKIP" for each combination of function and input tested (see the Value section in fuzz).
- msg
The message received in case of error, warning or skip, or an empty string if no failure occurred.
- attr(*, "what")
The character representation of the input tested.
Otherwise, FALSE.
Examples
res <- fuzz(funs = c("list", "matrix", "mean"),
what = test_inputs(c("numeric", "raw")))
#> ℹ Fuzzing 3 functions with 9 inputs (using 2 daemons)
#> ℹ Functions will be searched in the global namespace as `package` was not specified
#> ℹ 27 tests run [24ms]
res[[6]]
#> res msg
#> 1 OK
#> 2 OK
#> 3 OK
