Class: matlab.unittest.constraints.Constraint
Package: matlab.unittest.constraints
Produce diagnostic for compared value
diag = getDiagnosticFor(
produces the constObj
,actVal
)Diagnostic
object diag
for the
constraint constObj
and the value actVal
. When
creating a custom constraint, you must implement the
getDiagnosticFor
method to analyze the value
actVal
against the constraint constObj
and
return a matlab.unittest.diagnostics.Diagnostic
object.
Typically, the testing framework calls this method when it encounters a
qualification failure. Therefore, providing more detailed analysis after a failure
can be more efficiently handled by getDiagnosticFor
than the
satisfiedBy
method.
|
|
|
Value for comparison |