Prev | Code Coverage - Tales From the Trenches | Next |
Sounds easy
May expose bugs in implementation or design
# Program to calculate the answer
my $answer = 56;
if (normal_course_of_events) { $answer = 42; }
print "The answer is $answer\n";
Branch coverage shows uncovered missing else
Writing a new test gives incorrect answer
Slide 69 | YAPC::Europe::2003 | Copyright © 2003 Paul Johnson |