Description Usage Arguments Value Author(s) See Also Examples
View source: R/verifyObjectNames.R
Verify object class name, object function names, and object function parameter names, and provides a synthesis of checks.
Proceeds also to some introspection on object to identify instrumentation of function return types and test case definitions. Provides information about completeness of instruction, and about missing functions and test cases.
1 | verifyObjectNames(object_o_1)
|
object_o_1 |
the object to be checked |
A list
with following names
class_name |
the class name of the provided object |
supports_strict_compliance |
a single boolean |
supports_lazy_compliance |
a single boolean |
class_name_compliance |
a boolean value expression class name compliance |
class_name_compliance |
a vector of booleans, where names are the function names and values express the name compliance |
class_name_compliance |
a |
owns_function_return_type_information |
a single boolean |
can_be_type_checked |
a single boolean |
is_function_fully_instrumented |
a single boolean |
missing_function |
a vector of uninstrumented function names |
owns_test_case_definitions |
a single boolean |
is_test_case_fully_instrumented |
a single boolean |
missing_test_cases |
a single boolean |
Fabien Gelineau <neonira@gmail.com>
Maintainer: Fabien Gelineau <neonira@gmail.com>
Refer to verifyClassName
and verifyFunctionName
.
1 2 3 4 5 6 | ##---- typical case ----
library('data.table')
source(system.file('code-samples/frt-defs/good/full/AdditionFI.R',
package = 'wyz.code.offensiveProgramming'))
fi <- AdditionFI()
print(verifyObjectNames(fi))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.