![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re^14: Cleaning up unused subroutinesby Somni (Friar) |
on Oct 26, 2007 at 19:19 UTC ( #647473=note: print w/replies, xml ) | Need Help?? |
You wouldn't have to know that specifically foo() wasn't used, you'd simply go through each function, disabling its explicit tests then checking your coverage.
The test suite is being used here as an automated means of testing with as many inputs as possible. Something not easily done with your original proposed solution. Your solution misses code; utilizing the test suite has a chance of missing less.
In Section
Seekers of Perl Wisdom
|
|