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


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

/* Condition Coverage */Correction

Legend:

Unmodified
Added
Removed
Modified
  • Developer/Coverage/Theory

    v16 v17  
    6565
    6666A 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.
    67 = Condition Coverage =
     67= Condition/Decision Coverage =
    6868
    6969
    70 Two test case are required to achieve 100% Condition Coverage.  In one case x must be TRUE while y is FALSE and in the other case x must be FALSE while y is TRUE.
     70A minimum of two test cases are required to achieve 100% Condition/Decision Coverage.  In the first case, x and y must be TRUE.  In the second case, x and y must be FALSE.
    7171= Object Coverage =
    7272