computeArgumentsCombination: Compute Function Arguments Combination

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

View source: R/computeArgumentsCombination.R

Description

Computes a priori legal combinations of function arguments, according to the function definition (see formals).

Allows to foresee test complexity for a function, as this is in narrow relationship, with the number of various call signatures that could be used. The number of signatures is in itself a good indicator of complexity.

Usage

1

Arguments

fun_f_1

an R function

Details

Computes an a priori legal list of argument signatures for the provided function.

Value

A list holding names, number and signatures, each of them are list.

The names provides names of mandatory arguments, ellipsis (...) arguments and of default arguments.

The number provides the number of replacements per argument.

The signatures are the resulting textual argument combinations.

Author(s)

Fabien Gelineau <neonira@gmail.com>

Maintainer: Fabien Gelineau <neonira@gmail.com>

See Also

Refer to testFunction

Examples

1
2
3
4

neonira/wyz.code.metaTesting documentation built on Feb. 19, 2020, 12:46 p.m.