Branch Coverage

blib/lib/Plack/App/Directory/Markdown.pm
Criterion Covered Total %
branch 19 28 67.8


line true false branch
76 4 4 if -f -r $file and $self->is_markdown($file)
90 2 2 if ($file eq $f)
97 2 0 $found ? :
103 2 2 if (-f $dir)
104 2 0 if ($self->is_markdown($dir)) { }
105 0 2 unless open my $fh, '<:encoding(UTF-8)', $dir
108 1 1 if ($self->callback)
138 0 2 unless ($dir_url =~ m[/$])
143 0 2 if $env->{'PATH_INFO'} ne '/'
148 4 2 if $ent eq '.' or $ent eq '..'
157 0 2 unless $is_dir or $self->is_markdown($file)
163 0 2 if ($is_dir)
183 0 8 if ($self->markdown_ext) { }
198 8 0 if $root and not $root =~ m[/$]