Condition Coverage

blib/lib/Plack/App/DirectoryIndex.pm
Criterion Covered Total %
condition 10 13 76.9


and 3 conditions

line !l l&&!r l&&r condition
152 0 1 3 -d $dir and $dir_index
1 0 3 -d $dir and $dir_index and -f "$dir$dir_index"

or 2 conditions

line l !l condition
150 3 1 $self->dir_index // "index.html"
189 0 1 'Plack::MIME'->mime_type($file) || 'text/plain'

or 3 conditions

line l !l&&r !l&&!r condition
171 1 1 1 $ent eq "." or $ent eq ".."