Branch Coverage

blib/lib/MojoMojo/Formatter/Dir.pm
Criterion Covered Total %
branch 28 34 82.3


line true false branch
62 4 730 if ($line =~ m[<p>\{\{dir\s*(\S*)\s*(\S*)}}</p>]) { }
74 3 1 if ($error = $self->checkdir($dir, $c))
78 1 3 unless ($error)
125 8 8 if $file =~ m[^$dir/?\.*$]
126 2 6 if "$exclude" and grep /$exclude/, $file
128 2 4 if (-d $file) { }
145 2 2 if ($subdirs[0])
147 0 2 if $url = !"/$path"
149 0 2 unless -r $d
157 2 2 if ($files[0])
160 0 4 unless -r $f
168 4 0 unless 'MojoMojo::Formatter::File::Image'->can_format($1)
187 0 6 unless $dir
190 1 5 if $dir =~ /\.\./
194 5 0 ref $confwl eq 'ARRAY' ? :
205 2 3 unless (map(($dir =~ /^$_/), @wl))
210 1 2 unless -d $dir