in reply to Re: A fresh new module on CPAN: Test::MockFile::Light
in thread A fresh new module on CPAN: Test::MockFile::Light
... I like minimalism; Although we all live in a sea of files - namely the file system - I do not like to create small temporary files which will only exist during script run.
A possible scenario is that you have a module which writes formatted data on some file, and you want to test the module, in which case you need to test the content of the file. You can use the module to mock file during testing.
You can find examples on the documentation of Test-MockFile-Light.
Oguz
---------------------------------
life is ...
$mutation = sub { $_[0] =~ s/(.)/rand()<0.1?1-$1:$1/ge };
|
|---|