Changes between Version 15 and Version 16 of Developer/Coverage/Theory


Ignore:
Timestamp:
Sep 14, 2009, 8:52:55 PM (10 years ago)
Author:
GlennHumphrey
Comment:

/* Decision Coverage */ Referenced example

Legend:

Unmodified
Added
Removed
Modified
  • Developer/Coverage/Theory

    v15 v16  
    6464
    6565
    66 Two test cases are required to achieve 100% Decision Coverage.  One case must force the if statement to evaluate to TRUE and the other case must force the if statement to evaluate to FALSE.
     66A minimum of two test cases are required to achieve 100% Decision Coverage.  One case must force the if statement to evaluate to TRUE and the other case must force the if statement to evaluate to FALSE.  It is interesting to note that 100% Decision Coverage does not necessarily produce 100% Object Coverage.  A test case that forces a TRUE outcome will either execute blocks A1 and B or A1, A2 and B.  Short-circuiting requires careful selection of the test case in order to achieve 100% Decision Coverage and 100% Object Coverage.
    6767= Condition Coverage =
    6868