Package: matlab.unittest.selectors
Selector for TestSuite elements determined by name
The HasName
selector filters TestSuite
array
elements determined by the test element name.
matlab.unittest.selectors.HasName(
constructs a
selector for n
)TestSuite
elements determined by the test element name,
n
. You can specify the name as a character vector, a string
scalar, or an instance of the matlab.unittest.constraints.Constraint
class. If the specified name, n
, is a character vector or string
scalar, the testing framework creates an IsEqualTo
constraint with
n
as the expected value.
For a test element to be included in the suite, the test element must have the same name as the specified name.
|
Condition the test element name 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.
fromClass
| fromFile
| fromFolder
| fromMethod
| fromPackage
| matlab.unittest.selectors
| selectIf