matlab.unittest.constraints.IssuesNoWarnings Class
Namespace: matlab.unittest.constraints
Superclasses: matlab.unittest.constraints.Constraint
Test if function issues no warnings
Description
The matlab.unittest.constraints.IssuesNoWarnings
class provides a
constraint to test if a function handle issues no warnings.
The matlab.unittest.constraints.IssuesNoWarnings
class is a handle
class.
Creation
Description
c = matlab.unittest.constraints.IssuesNoWarnings
creates a
constraint to test if a function handle issues no warnings. The constraint is satisfied if
the actual value is a function handle that issues no warnings when the testing framework
invokes it.
c = matlab.unittest.constraints.IssuesNoWarnings("WhenNargoutIs",
also specifies the number of outputs to request from the function handle. When you use
this syntax, the constraint is satisfied if the function handle produces the specified
number of outputs without issuing any warnings.numOutputs
)
Input Arguments
Properties
Examples
Version History
Introduced in R2013a