1Test::TempDir::Factory(U3s)er Contributed Perl DocumentatTieosnt::TempDir::Factory(3)
2
3
4

NAME

6       Test::TempDir::Factory - A factory for creating Test::TempDir::Handle
7       objects
8

VERSION

10       version 0.11
11

SYNOPSIS

13           my $f = Test::TempDir::Factory->new;
14
15           my $d = $f->create;
16
17           $d->empty;
18
19           # ...
20
21           $d->cleanup
22

DESCRIPTION

24       This class creates Test::TempDir::Handle objects with the right "dir"
25       parameter, creating directories, and handling fallback logic.
26

ATTRIBUTES

28   "lock"
29       No longer used.
30
31   "lock_opts"
32       No longer used.
33
34       Defaults to "NONBLOCKING"
35
36   "lock_attempts"
37       No longer used.
38
39       Defaults to 2.
40
41   "dir_name"
42       The directory under "t_dir" to use.
43
44       Defaults to "tmp"
45
46   "t_dir"
47       Defaults to "t"
48
49   "use_subdir"
50       Whether to always use a temporary subdirectory under the temporary
51       root.
52
53       This means that with a "success" cleanup policy all failures are
54       retained.
55
56       When disabled, "t/tmp" will be used directly as "temp_root".
57
58       Defaults to true.
59
60   "subdir_template"
61       The template to pass to "tempdir". Defaults to "File::Temp::TEMPXXX".
62
63   "handle_class"
64       Defaults to Test::TempDir::Handle.
65
66   "verbose"
67       Whether or not to "carp" diagnostics when falling back.
68
69       If you subclass this factory and add a "logger" method a la
70       MooseX::Logger then this parameter is ignored and all messages will be
71       "warn"ed on the logger.
72

METHODS

74   "create"
75       Create a Test::TempDir::Handle object with a proper "dir" attribute.
76

SUPPORT

78       Bugs may be submitted through the RT bug tracker
79       <https://rt.cpan.org/Public/Dist/Display.html?Name=Test-TempDir> (or
80       bug-Test-TempDir@rt.cpan.org <mailto:bug-Test-TempDir@rt.cpan.org>).
81
82       There is also a mailing list available for users of this distribution,
83       at <http://lists.perl.org/list/perl-qa.html>.
84
85       There is also an irc channel available for users of this distribution,
86       at "#perl" on "irc.perl.org" <irc://irc.perl.org/#perl-qa>.
87

AUTHOR

89       יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>
90
92       This software is copyright (c) 2006 by יובל קוג'מן (Yuval Kogman).
93
94       This is free software; you can redistribute it and/or modify it under
95       the same terms as the Perl 5 programming language system itself.
96
97
98
99perl v5.36.0                      2022-07-22         Test::TempDir::Factory(3)
Impressum