Test::TempDir::Handle(3pm) | User Contributed Perl Documentation | Test::TempDir::Handle(3pm) |
Test::TempDir::Handle - A handle for managing a temporary directory root
version 0.10
use Test::TempDir::Handle; my $h = Test::TempDir::Handle->new( dir => dir("t/tmp") ); $h->empty; # ... $h->cleanup; # will delete on success by default
This class manages a temporary directory.
The Path::Class::Dir that is being managed.
An optional lock object (File::NFSLock). Just kept around for reference counting.
One of "success", "always" or "never".
"success" means that "cleanup" deletes only if "test_builder" says the tests have passed.
The Test::Builder singleton.
Cleans out the directory but doesn't delete it.
Cleans out the directory and removes it.
Calls "delete" if the "cleanup_policy" dictates to do so.
This is normally called automatically at destruction.
XXXX XXX'XX (Yuval Kogman) <nothingmuch@woobling.org>
This software is copyright (c) 2006 by XXXX XXX'XX (Yuval Kogman).
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
2016-02-21 | perl v5.22.1 |