Branch Coverage

blib/lib/Cache/Repository/Filesys.pm
Criterion Covered Total %
branch 45 80 56.2


line true false branch
128 0 2 if (exists $self->{'sector_size'} and $self->{'sector_size'} < 1)
133 0 2 if (exists $self->{'symlink_size'} and $self->{'symlink_size'} < 1)
142 1 1 if (delete $self->{'clear'})
153 1 3 if $_has_statvfs
172 1 0 if (-d $path) { }
190 0 13 unless $tag
193 0 13 if ($self->{'dir_mapping'}) { }
250 1 9 unless (exists $self->{'metaname'})
258 9 1 if ($fh)
260 5 4 $mode eq 'r' ? :
272 5 0 if ($s and $s->mtime >= ($self->{'metastamp'} || 0) and $fh)
323 0 2 unless (exists $self->{'meta'}{$opts{'tag'}})
344 0 4 if ($opts{'reset'})
351 2 2 $self->{'meta'}{$opts{'tag'}} ? :
4 0 $opts{'meta'} ? :
379 0 0 unless $self->_is_filename_ok($opts{'filename'})
385 0 0 if (symlink $opts{'target'}, $dstfile)
404 0 3 unless $self->_is_filename_ok($opts{'filename'})
415 3 0 if (open my $dst_h, '>', $dstfile)
424 2 1 if exists $opts{'mode'}
426 2 0 if exists $opts{'owner'} and exists $opts{'group'}
427 3 0 if ($rc)
447 0 2 unless -d $repos_dir
449 1 1 if (exists $opts{'files'}) { }
451 1 0 ref $opts{'files'} ? :
463 0 3 unless $s
472 0 3 if (-l $srcname) { }
474 0 0 unless &$callback(%cb_opts, 'target', readlink $srcname)
478 0 3 unless my $fh = 'IO::File'->new($srcname, 'r')
484 0 3 unless &$callback(%cb_opts, 'data', $buf)
488 0 3 unless &$callback(%cb_opts, 'data', undef, 'end', 1)
504 0 1 unless -d $repos_dir
508 0 1 if (exists $opts{'files'}) { }
510 0 0 ref $opts{'files'} ? :
523 0 2 if (-l $fullname) { }
530 2 0 if ($s % 1024)
556 5 5 unless -f $File::Find::name
563 3 0 if -d $dir
567 3 0 wantarray ? :
583 1 0 wantarray ? :