Branch Coverage

blib/lib/Plack/App/Directory/Markdown.pm
Criterion Covered Total %
branch 14 22 63.6


line true false branch
62 2 2 if (-f $dir)
63 2 0 if ($self->is_markdown($dir)) { }
64 0 2 unless open my $fh, '<:encoding(UTF-8)', $dir
67 1 1 if ($self->callback)
94 0 2 unless ($dir_url =~ m[/$])
99 0 2 if $env->{'PATH_INFO'} ne '/'
104 4 2 if $ent eq '.' or $ent eq '..'
113 0 2 unless $is_dir or $self->is_markdown($file)
119 0 2 if ($is_dir)
139 0 4 if ($self->markdown_ext) { }
154 2 0 if $root and not $root =~ m[/$]