matlab.unittest.selectors.HasName class
Package: matlab.unittest.selectors
Selector for TestSuite elements determined by name
Description
The HasName
selector filters TestSuite
array
elements determined by the test element name.
Construction
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.
Input Arguments
Properties
|
Condition the test element name 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.
Examples
Version History
Introduced in R2014a
See Also
selectIf
| fromClass
| fromFile
| fromFolder
| fromMethod
| fromPackage
| matlab.unittest.selectors