blib/lib/Hub/Base/FileSystem.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 9 | 76 | 11.8 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
271 | 0 | 0 | 0 | defined $$opts{$_} and ref $$opts{$_} ne 'ARRAY' |
544 | 0 | 0 | 0 | defined $dir and -d $dir |
645 | 0 | 0 | 0 | $HAS_WIN32 and $mode ne 'SKIP' |
929 | 0 | 0 | 0 | defined $_ and $_ |
line | l | !l | condition |
---|---|---|---|
115 | 8 | 0 | shift() || (return) |
125 | 0 | 0 | $$Hub::Base::FileSystem::Hub{'/conf/timeout/lockfile'} || 1 |
431 | 0 | 0 | Hub::getpath($target_dir) || '.' |
541 | 0 | 0 | shift() || die('Provide a directory') |
595 | 0 | 0 | $$opts{'dmode'} || 493 |
648 | 0 | 0 | $$Hub::Base::FileSystem::Hub{'/conf/win32/other_name'} || 'Everyone' |
649 | 0 | 0 | $$Hub::Base::FileSystem::Hub{'/conf/win32/group_name'} || 'Win32::LoginName' |
822 | 8 | 0 | shift() || (return) |
904 | 0 | 0 | $$Hub::Base::FileSystem::Hub{'/sys/PATH'} ||= [] |
922 | 0 | 0 | shift() || (return) |
977 | 47 | 0 | shift() || (return) |
1022 | 24 | 0 | Hub::fixpath(shift()) || '' |
1024 | 24 | 0 | $path || '' |
1034 | 0 | 0 | Hub::getname($path) || '' |
1035 | 0 | 0 | Hub::getext($path) || '' |
1036 | 0 | 0 | Hub::getpath($path) || '' |
1072 | 0 | 0 | getname($orig) || '' |
1129 | 40 | 0 | shift() || (return) |
1153 | 0 | 0 | Hub::fixpath(shift()) || '' |
1154 | 0 | 0 | Hub::fixpath(shift()) || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
121 | 0 | 0 | 8 | $@ or not $flocked |
268 | 0 | 0 | 0 | shift() || croak('Provide a directory') |
448 | 0 | 0 | 0 | not -d $target or $$opts{'force'} |
494 | 0 | 0 | 0 | not $target_stats or $source_stats->mtime > $target_stats->mtime |
649 | 0 | 0 | 0 | $group ||= $$Hub::Base::FileSystem::Hub{'/conf/win32/group_name'} || 'Win32::LoginName' |
650 | 0 | 0 | 0 | $owner ||= $$Hub::Base::FileSystem::Hub{'/conf/win32/owner_name'} |
1004 | 0 | 0 | 0 | Hub::srcpath(@_) || $_[0] |
1133 | 7 | 16 | 0 | $base_dir ||= Hub::bestof($$Hub::Base::FileSystem::Hub{'/sys/ENV/WORKING_DIR'}, Hub::getpath($0)) |