retrieveTestCaseDefinitions {wyz.code.offensiveProgramming} | R Documentation |
Retrieve test case definitions or test case descriptions.
Description
From an instrumented class, retrieve the test case definitions or descriptions.
Usage
retrieveTestCaseDefinitions(object_o_1)
retrieveTestCaseDescriptions(object_o_1)
Arguments
object_o_1 |
the |
Value
For function
, retrieveTestCaseDefinitions
,
a polymorphic return that is either
a list |
as returned by the |
another list |
as returned by the
|
a data.table |
the test case definitions as declared in the source class |
For function
, retrieveTestCaseDescriptions
,
either a character vector
when no test case definitions exists or a
data.table
of the test case descriptions.
Author(s)
Fabien Gelineau <neonira@gmail.com>
Maintainer: Fabien Gelineau <neonira@gmail.com>
See Also
Refer to defineEvaluationModes
.
Examples
##---- typical case ----
library('data.table')
source(system.file('code-samples/tcd-defs/good/partial/AdditionTCPartial.R',
package = 'wyz.code.offensiveProgramming'))
source(system.file('code-samples/no-defs/Addition.R',
package = 'wyz.code.offensiveProgramming'))
retrieveTestCaseDefinitions(AdditionTCPartial()) # works, renders a data.table
retrieveTestCaseDefinitions(Addition()) # fails, renders a list
retrieveTestCaseDescriptions(Addition())
retrieveTestCaseDescriptions(AdditionTCPartial())
[Package wyz.code.offensiveProgramming version 1.1.24 Index]