Branch Coverage

blib/lib/Any/Daemon/HTTP/Directory.pm
Criterion Covered Total %
branch 0 82 0.0


line true false branch
39 0 0 unless my $loc = $args->{'location'}
42 0 0 if (ref $loc eq 'CODE') { }
48 0 0 unless substr($loc, -1) eq '/'
51 0 0 unless -d $loc
62 0 0 defined $if ? :
0 0 ref $if eq 'ARRAY' ? :
82 0 0 if ref $loc eq 'CODE'
85 0 0 unless $x =~ s/^\Q$path\E/$loc/
96 0 0 unless -e $item
98 0 0 if -f _
101 0 0 unless -d _
104 0 0 if substr($item, -1) ne '/'
109 0 0 unless -f $item . $if
114 0 0 unless $self->{'ADHD_dirlist'}
122 0 0 unless -f $fn
125 0 0 unless open my $fh, '<:raw', $fn
132 0 0 if defined $has_etag and $has_etag eq $etag
136 0 0 if defined $has_mtime and $has_mtime >= $mtime
142 0 0 if (my $mime = $mimetypes->mimeTypeOf($fn)) { }
144 0 0 if $mime->isAscii
167 0 0 if $dir ne '/'
173 0 0 $d->{'is_symlink'} ? :
216 0 0 unless opendir my $from_dir, $dirname
222 0 0 ref $names eq 'CODE' ? :
0 0 ref $names eq 'Regexp' ? :
226 0 0 unless ref $postfilter eq 'CODE'
235 0 0 $hide_symlinks ? :
238 0 0 if (not $hide_symlinks and -l _) { }
0 0 elsif (-d _) { }
0 0 elsif (-f _) { }
244 0 0 unless &$postfilter(\%d)
247 0 0 if ($d{'is_symlink'}) { }
0 0 elsif ($d{'is_file'}) { }
0 0 elsif ($d{'is_directory'}) { }
253 0 0 if $s > 1024
254 0 0 if $s > 1024
255 0 0 if $s > 1024
256 0 0 $s >= 100 ? :
268 0 0 if $mode & 2048
270 0 0 if $mode & 1024
272 0 0 if $mode & 512