Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^3: Universal test flagby bulk88 (Priest) |
on Jul 17, 2012 at 15:19 UTC ( [id://982261]=note: print w/replies, xml ) | Need Help?? |
I dont see Using Test-Point Callbacks for Automated Diagnostics in Testing as being any more efficient than a print statement since multiple arguments of lexicals are still evaluated and copied if the branch is taken and those instructions will not be removed, although they wont execute, with debugging mode off. The only advantage I see of Using Test-Point Callbacks for Automated Diagnostics in Testing is that errors can be discovered automatically with code, rather than the programmer looking for a needle in a haystack wrong value in a mile of debug channel.
In Section
Seekers of Perl Wisdom
|
|