matlab.unittest.selectors.HasParameter class
Package: matlab.unittest.selectors
Selector for TestSuite elements determined by parameterization
Description
The HasParameter
selector filters TestSuite
array
elements determined by parameterization.
Construction
matlab.unittest.selectors.HasParameter
constructs
a selector for TestSuite
elements determined by their
parameterization. When you instantiate HasParameter
without
input arguments, the resulting TestSuite
array only
contains elements that have parameterized test methods.
matlab.unittest.selectors.HasParameter(
constructs
a selector with additional options specified by one or more Name,Value
)Name,Value
pair
arguments. The selector filters based on the name of the property
that defines a parameter, the name of the parameter, and the value
of the parameter. For an element to be selected for the TestSuite
array,
it must have at least one parameter that satisfies all the conditions.
Input Arguments
Name-Value ArgumentsSpecify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Before R2021a, use commas to separate each name and value, and enclose
Name
in quotes.
|
Name of the test class property that defines the parameter used by the test suite element,
specified as a character vector, string scalar, or
|
|
Name of the parameter used by the test suite element, specified as a character vector, string
scalar, or MATLAB® generates parameter names based on the test class property that defines the parameters:
|
|
Value of the parameter, specified as any MATLAB data type or as an instance of the
|
Properties
|
Condition that the test element’s parameter property
name must satisfy to be included in the test suite, specified as an
instance of the |
|
Condition that the test element’s parameter name must
satisfy to be included in the test suite, specified as an instance
of the |
|
Condition that the test element’s parameter property
value must satisfy to be included in the test suite, specified as
an instance of the |
Copy Semantics
Value. To learn how value classes affect copy operations, see Copying Objects.