Package: matlab.unittest.selectors
Selector for TestSuite elements determined by parameterization
The HasParameter
selector filters TestSuite
array
elements determined by parameterization.
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.
Specify optional comma-separated pairs of Name,Value
arguments.
Name
is the argument
name and Value
is the corresponding
value. Name
must appear
inside single quotes (' '
).
You can specify several name and value pair
arguments in any order as Name1,Value1,...,NameN,ValueN
.
|
Name of the property that defines the parameter specified as
a character vector or as an instance of the |
|
Name of the parameter specified as a character vector or as
an instance of the |
|
Value of the parameter specified as any MATLAB® data type
or as an instance of the |
|
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 |
Value. To learn how value classes affect copy operations, see Copying Objects in the MATLAB documentation.
fromClass
| fromFile
| fromFolder
| fromMethod
| fromPackage
| matlab.unittest.parameters
| matlab.unittest.selectors
| selectIf