Test::MockFile::Plugin::FileTemp(3pm)

Test::MockFile::Plugin::FileTemp3pm

Plugin to allow file::temp calls

Usage

  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" );

Overview

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.

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

From libtest-mockfile-perl 0.037-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.