verifyTestCaseDefinitions: Verify test case definitions

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/verifyTestCaseDefinitions.R

Description

Test case definitions has to comply with many rules. This functions checks for this compliances and helps in dectection of uncompliances.

Usage

1
verifyTestCaseDefinitions(object_o_1, requiresFullInstrumentation_b_1 = TRUE)

Arguments

object_o_1

The object to be considered

requiresFullInstrumentation_b_1

a boolean stating if full instrumentation is required

Details

When requiresFullInstrumentation_b_1 is TRUE, each function must have an entry in the test case parameter definition.

Value

A list with names

validity

a single boolean value

class

the class name of the provided object

intent

the stage of the failure, provides hint about the faced issue

message

some hints to resolve the issue(s).

Author(s)

Fabien Gelineau <neonira@gmail.com>

Maintainer: Fabien Gelineau <neonira@gmail.com>

See Also

Refer to defineTestCaseDefinitionsParameterName.

Examples

1
2
3
4
5
6
##---- typical case ----
library('data.table')
source(system.file('code-samples/tcd-defs/good/full/AdditionTC.R',
                   package = 'wyz.code.offensiveProgramming'))
tc <- AdditionTC()
print(verifyTestCaseDefinitions(tc))

neonira/wyz.code.offensiveProgramming documentation built on Feb. 20, 2020, 2:01 p.m.