![]() |
|
Just another Perl shrine | |
PerlMonks |
Re: Can Test::MockObject mock a file?by perlfan (Vicar) |
on Sep 19, 2020 at 23:37 UTC ( #11121953=note: print w/replies, xml ) | Need Help?? |
Test::MockFile::FileHandle exists. Also, file handles can be "mocked" using tie and implementing a null file handle interface, if one doesn't exist. See perltie on this. File::Temp is also used extensively in testing scenarios, as mentioned already.
In Section
Seekers of Perl Wisdom
|
|