File-Find-Rule-Filesys-Virtual
view release on metacpan or search on metacpan
t/findvirtual.t view on Meta::CPAN
#!perl -w
use strict;
use Test::More tests => 8;
use File::Find::Rule;
use File::Find::Rule::Filesys::Virtual;
use Filesys::Virtual::Plain;
use Cwd;
if (eval { require Test::Differences; 1 }) {
no warnings 'redefine';
*is_deeply = \&Test::Differences::eq_or_diff;
}
my $virtual = Filesys::Virtual::Plain->new({
root_path => getcwd,
cwd => '/',
root => '/',
});
sub new_real { File::Find::Rule->new }
sub new_virt { File::Find::Rule::Filesys::Virtual->new->virtual( $virtual ) }
( run in 2.443 seconds using v1.01-cache-2.11-cpan-df04353d9ac )