$mock_dbi->set_retval( method => 'get_all_songs', retval => \%RET_VALS );
My guess is that that's not doing what you think it's doing. Try putting a print into your sub get_all_songs to see if it's getting called or mocked. See also Basic debugging checklist - print and Data::Dumper are your friends :-)
In reply to Re: Test::MockDBI example
by Anonymous Monk
in thread Test::MockDBI example [SOLVED]
by brilant_blue
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |