Reports some summary statistics from the results of a run of fuzz.
Usage
# S3 method for class 'cbtf'
summary(object, tabulate = TRUE, ...)Arguments
- object
An object of class
cbtf.- tabulate
Whether a tabulation of results should be printed out (
TRUEby default). The tabulation can always be retrieved from the"summary_table"attribute of the returned object also whentabulate = FALSE.- ...
Further arguments passed to or from other methods. These are currently ignored.
Value
A data frame containing the following columns and attributes is returned invisibly:
- fun
The names of the function tested.
- what
The inputs tested.
- 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(*, "summary_table")
The tabulation of results that was printed out.
Examples
res <- fuzz(funs = c("list", "matrix", "mean"),
what = test_inputs(c("numeric", "raw")))
#> ℹ Fuzzing 3 functions on 8 inputs
#> ℹ Functions will be searched in the global namespace as 'package' was not specified
summary(res)
#> Fuzzed 3 functions on 8 inputs:
#>
#> FAIL WARN SKIP OK
#> list 0 0 0 8
#> matrix 0 0 0 8
#> mean 0 0 0 8
#>
#> [ FAIL 0 | WARN 0 | SKIP 0 | OK 24 ]
