MATLAB SIMULINK VERIFICATION AND VALIDATION - S Guía de usuario Pagina 397

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 674
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 396
Model Coverage for MATLAB Functions
18-31
Because the line 27 decision evaluated false five times, line 30 is evaluated five times,
three of which are false. Because both the true and false outcomes are achieved,
decision coverage for line 30 is 100%.
Because line 30, like line 27, has two conditions related by a logical OR operator (||),
condition 2 is tested only if condition 1 is false. Because condition 1 tests false five
times, condition 2 is tested five times. Of these, condition 2 tests true two times and
false three times, which accounts for the two occurrences of the true outcome for this
decision.
Because the first condition of the line 30 decision does not test true, both outcomes
do not occur for that condition and the condition coverage for the first condition is
highlighted with a rose color. MCDC coverage is also highlighted in the same way for a
decision reversal based on the true outcome for that condition.
Vista de pagina 396
1 2 ... 392 393 394 395 396 397 398 399 400 401 402 ... 673 674

Comentarios a estos manuales

Sin comentarios