If you want a more elegant version, see Test::Exception. But keep in mind that because that's a CPAN module, not everyone may have it installed.eval { my $hashref = $foo->getDetails( PARAM_ONE => 1234); }; like $@, /missing PARAM_TWO/, "detect missing param 2";
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to Re: too much testing?
by merlyn
in thread too much testing?
by geektron
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |