De Software testing
Ir para: navegação, pesquisa



  • A decision can have three possible outcomes: true, false and undefined. When the condition corresponding to a decision evaluates to true or false, the decision to take or or the other path is taken. In the case of a switch statement, one of several possible paths gets selected and the control flow proceeds accordingly. However, in some cases the evaluation of a condition might fail in which the corresponding decision's outcome is undefined. <bib>mathur:2008, 419</bib>
  • A decision is considered covered if the flow of control has been diverted to all possible destinations that correspond to this decision (i.e., all outcomes of the decision has been taken). <bib>mathur:2008, 421</bib>