udftest objects store details about unit tests for user-defined functions.
Each udftest object has the following properties:
Query using the UDF. The UDF's name should be represented by
'?' so that name changes are automatically handled. For example,
"SELECT ?(21)", would call the UDF with input value 21.
Expected value returned by the query
Detailed description of the test
Whether or not to include this test in any generated documentation
is_udftest() checks if an object is a udftest object
is_udftest(x)
| x | An object |
|---|
new()Initialize a new udftest object
udftest$new(query, expect, description, example = TRUE)
queryQuery using the UDF
expectExpected value returned by the query
descriptionDetailed description of the test
exampleWhether or not to include this test in any generated
documentation (default: TRUE)
clone()The objects of this class are cloneable with this method.
udftest$clone(deep = FALSE)
deepWhether to make a deep clone.