There's more than one way to do things | |
PerlMonks |
Re: Testing test functionby DrHyde (Prior) |
on Sep 26, 2013 at 10:54 UTC ( [id://1055815]=note: print w/replies, xml ) | Need Help?? |
I presume that deep down inside the function you want to test there is a call to Test::More::ok(). If there isn't, there probably should be. You need to mock that function. I do this in the tests for Class::Mockable.
In Section
Seekers of Perl Wisdom
|
|