|
|
| No such thing as a small change | |
| PerlMonks |
Silencing warnings when testingby astaines (Curate) |
| on Oct 28, 2002 at 01:23 UTC ( #208426=perlquestion: print w/ replies, xml ) | Need Help?? |
|
astaines has asked for the
wisdom of the Perl Monks concerning the following question:
Hi, As part of their construction these objects can be fed arrays or subroutine references. The relevant set routines check to see if you've fed them the right type of thing - this is done using ref :-
This works fine, and I'm happy with it, but in my test scripts I have chosen to test that I can't feed improper things to the set routines. As you can see the error reports from carp in _ref_check() turn up in the test output.
So what I would like is style advice - is it appropriate/accepatable for tests to output something besides
In any event can I turn off carp, or otherwise lose diagnostic output while running tests? -- P.S. If you're really curious the module will be on my scratchpad for a while, but it's not really ready for the real world...
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||