logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Test::MockFile::Plugin::FileTemp - Plugin to allow File::Temp calls

Description

       Test::MockFile::Plugin::FileTemp provides plugin to Test::MockFile to authorize any calls from File::Temp
       package.

Methods

register($self)
       Public method to register the plugin.

Name

       Test::MockFile::Plugin::FileTemp - Plugin to allow File::Temp calls

See Also

       Test::MockFile, Test::MockFile::Plugins, Test::MockModule

perl v5.40.1                                       2025-05-16              Test::MockFile::Plugin::FileTemp(3pm)

Synopsis

         use Test::MockFile 'strict', plugin => 'FileTemp';

         # using FileTemp plugin, all calls from FileTemp bypass the Test::MockFile strict mode

         my $dir = File::Temp->newdir();
         ok opendir( my $dh, "$dir" );
         ok open( my $f, '>', "$dir/myfile.txt" );

See Also