Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

test::tempdir::factory(3pm) [debian man page]

Test::TempDir::Factory(3pm)				User Contributed Perl Documentation			       Test::TempDir::Factory(3pm)

NAME
Test::TempDir::Factory - A factory for creating Test::TempDir::Handle objects. SYNOPSIS
my $f = Test::TempDir::Factory->new; my $d = $f->create; $d->empty; # ... $d->cleanup DESCRIPTION
This class creates Test::TempDir::Handle objects with the right "dir" parameter, taking care of obtaining locks, creating directories, and handling fallback logic. ATTRIBUTES
lock Whether or not to enable locking. Defaults to true. lock_opts A hash reference to pass to File::NFSLock. Defaults to "NONBLOCKING" lock_attempts How many times to try to create and lock a dir. Defaults to 2. dir_name The directory under "t_dir" to use. Defaults to "tmp" t_dir Defaults to "t" use_subdir Whether to always use a temporary subdirectory under the temporary root. This means that with a "success" cleanup policy all failures are retained. When disabled, "t/tmp" will be used directly as "temp_root". Defaults to true. subdir_template The template to pass to "tempdir". Defaults to "File::Temp::TEMPXXX". handle_class Defaults to Test::TempDir::Handle. verbose Whether or not to "carp" diagnostics when falling back. If you subclass this factory and add a "logger" method a la MooseX::Logger then this parameter is ignored and all messages will be "warn"ed on the logger. METHODS
create Create a Test::TempDir::Handle object with a proper "dir" attribute. perl v5.10.0 2009-08-10 Test::TempDir::Factory(3pm)

Check Out this Related Man Page

Test::Reporter::Transport::File(3pm)			User Contributed Perl Documentation		      Test::Reporter::Transport::File(3pm)

NAME
Test::Reporter::Transport::File - File transport for Test::Reporter VERSION
version 1.58 SYNOPSIS
my $report = Test::Reporter->new( transport => 'File', transport_args => [ $dir ], ); DESCRIPTION
This module saves a Test::Reporter report to the specified directory (using the "write" method from Test::Reporter. This lets you save reports during offline operation. The files may later be uploaded using "Test::Reporter->read()". Test::Reporter->new->read( $file )->send(); USAGE
See Test::Reporter and Test::Reporter::Transport for general usage information. Transport Arguments $report->transport_args( $dir ); This transport class must have a writable directory as its argument. METHODS
These methods are only for internal use by Test::Reporter. new my $sender = Test::Reporter::Transport::File->new( $dir ); The "new" method is the object constructor. send $sender->send( $report ); The "send" method transmits the report. AUTHORS
o Adam J. Foxson <afoxson@pobox.com> o David Golden <dagolden@cpan.org> o Kirrily "Skud" Robert <skud@cpan.org> o Ricardo Signes <rjbs@cpan.org> o Richard Soderberg <rsod@cpan.org> o Kurt Starsinic <Kurt.Starsinic@isinet.com> COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Authors and Contributors. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.12.4 2011-08-11 Test::Reporter::Transport::File(3pm)
Man Page