Description Usage Arguments Value Author(s) See Also Examples
View source: R/retrieveTestCaseDefinitions.R
From an instrumented class, retrieve the test case definitions or descriptions.
1 2 | retrieveTestCaseDefinitions(object_o_1)
retrieveTestCaseDescriptions(object_o_1)
|
object_o_1 |
the object to consider |
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 string when
no test case definitions exists or a data.table of the test case descriptions.
Fabien Gelineau <neonira@gmail.com>
Maintainer: Fabien Gelineau <neonira@gmail.com>
Refer to defineEvaluationModes
1 2 3 4 5 6 7 8 9 10 11 | ##---- 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())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.