Learn R Programming

CBTF (version 0.6.0)

whitelist: Apply additional whitelist patterns to the results of a fuzz run

Description

This allows for post-hoc whitelisting of results according to the patterns specified.

Usage

whitelist(object, patterns)

Value

An object of class cbtf with the additional whitelist patterns applied.

Arguments

object

An object of class cbtf.

patterns

One or more strings containing regular expressions to match the errors to whitelist.

See Also

fuzz

Examples

Run this code

## this reports a false positive result
(res <- fuzz(funs = "matrix", what = test_inputs("scalar")))

## with whitelisting, we can remove that
whitelist(res, "must be of a vector type")

Run the code above in your browser using DataLab