Prev | Code Coverage - Tales From the Trenches | Next |
Boolean expression
Ensure all terms in the expression are exercised
a if $x || $y;
Four combinations of values for $x and $y
$x $y
0 0 0 1 1 0 1 1
For 100% condition coverage all four must be taken
continued...
Slide 19 | YAPC::Europe::2003 | Copyright © 2003 Paul Johnson |