Main Content

verifyCheckResultStatus

Verify that a model passed or failed a set of checks

Description

Use the [success message]= verifyCheckResultStatus(ma, baseline, checkIDs) method to verify that a model has passed or failed a set of checks.

Before invoking the verifyCheckResultStatus method, run the checks that you specify with checkIDs. Then use the getCheckResultStatus method to obtain the boolean values for the baseline argument.

Input Arguments

collapse all

Simulink.ModelAdvisor object for which you want to verify that a set of checks passed.

Statuses from the most recent checks run that you specify by Check IDs.

Cell array of character vectors specifying the identifiers of Model Advisor checks that you want to verify have run.

Output Arguments

collapse all

Boolean value that indicates whether the statuses match the baseline. A value of 1 indicates that the statuses match. A value of 0 indicates that the statuses do not match the baseline.

Message indicating whether the method successfully verified the check result statuses.

Introduced in R2006a