in reply to Re: Testing parameters and return values
in thread Testing parameters and return values
If you're worried about performance of your live code you could use Carp::Assert. Assertions will compile out if you set no Carp::Assert; and thus have no performance impact on the live code. That way you can at least perform parameter/return checking in your integration and system tests. And if there are ever any weird problems with your live code you can turn the assertions on by commenting out a single line.
|
|---|