++
I just removed some dead code earlier today that the code coverage spotted. It was along the lines of the following:
sub foo { # bunch of code if ( $some_condition ) { # do a bunch of stuff return $something; } else { # do some other stuff croak($error); } # do some more stuff }
That can be easy to miss in refactoring.
Cheers,
Ovid
New address of my CGI Course.
In reply to Re^3: When 100% Code Coverage Backfires
by Ovid
in thread When 100% Code Coverage Backfires
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |