verifyTestCaseDefinitions: Verify Test Case Definitions

View source: R/verifyTestCaseDefinitions.R

verifyTestCaseDefinitionsR Documentation

Verify Test Case Definitions

Description

Checks for test cases definition compliance and dectects uncompliances.

Usage

verifyTestCaseDefinitions(object_o_1, requiresFullInstrumentation_b_1 = TRUE)

Arguments

object_o_1

The objectto 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

##---- 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))

wyz.code.offensiveProgramming documentation built on Sept. 25, 2023, 9:05 a.m.