Branch Coverage

blib/lib/Plack/App/Directory/Template.pm
Criterion Covered Total %
branch 25 46 54.3


line true false branch
23 1 10 if $$self{'INCLUDE_PATH'}
29 0 10 if (-f $dir)
33 2 8 if (defined $$self{'dir_index'})
35 1 1 if (-f $index_file)
42 0 9 unless ($urlpath =~ m[/$])
51 18 18 if $ent eq '.' or $ent eq '..'
57 3 6 if $$env{'PATH_INFO'} ne '/'
67 16 14 $is_dir ? :
16 14 $is_dir ? :
16 14 $is_dir ? :
75 9 15 unless $self->filter->($_)
7 2 if $self->filter
86 0 9 if ($$env{'tt.vars'}) { }
92 2 7 ref $self->templates ? :
126 0 0 $_[0]{'stat'} ? :
130 0 0 unless $_[0]{'stat'}
146 0 0 if ($setids)
147 0 0 if ($setids & 1)
148 0 0 $1 eq 'x' ? :
150 0 0 if ($setids & 4)
151 0 0 $1 eq 'x' ? :
153 0 0 if ($setids & 2)
154 0 0 $1 eq 'x' ? :