MATLAB SIMULINK VERIFICATION AND VALIDATION - S Guide de l'utilisateur Page 395

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 674
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 394
Model Coverage for MATLAB Functions
18-29
Coverage for Line 14
The Decisions Analyzed table indicates that the local function rect_intersect
executed during testing, thus receiving 100% coverage.
Coverage for Line 27
The Decisions analyzed table indicates that there are two possible outcomes for the
decision in line 27: true and false. Five of the eight times it was executed, the decision
evaluated to false. The remaining three times, it evaluated to true. Because both
possible outcomes occurred, decision coverage is 100%.
The Conditions analyzed table sheds some additional light on the decision in line 27.
Because this decision consists of two conditions linked by a logical OR (||) operation,
only one condition must evaluate true for the decision to be true. If the first condition
evaluates to true, there is no need to evaluate the second condition. The first condition,
top1 < bottom2, was evaluated eight times, and was true twice. This means that
the second condition was evaluated only six times. In only one case was it true, which
Vue de la page 394
1 2 ... 390 391 392 393 394 395 396 397 398 399 400 ... 673 674

Commentaires sur ces manuels

Pas de commentaire