This formats with colours the results from a fuzz run and prints them to the terminal.
Usage
# S3 method for class 'cbtf'
print(x, show_all = FALSE, ...)
Arguments
- x
An object of class
cbtf
.- show_all
Whether all results should be printed. By default (
FALSE
), only the functions that reported an error or a warning are printed. IfTRUE
, all functions tested are printed, including those that were successful or were skipped.- ...
Further arguments passed to or from other methods. These are currently ignored.
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
print(res, show.all = TRUE)
#> ✔ 🏃 You didn't get caught by the fuzz!
#>
#> [ FAIL 0 | WARN 0 | SKIP 0 | OK 24 ]