Branch Coverage

blib/lib/Mojolicious/Plugin/Directory/Stylish.pm
Criterion Covered Total %
branch 28 34 82.3


line true false branch
36 2 24 if -f $root->to_string
41 13 11 if ref $handler eq 'CODE'
43 11 13 if (-f $path) { }
13 0 elsif (-d $path) { }
44 0 11 unless $c->tx->res->code
47 1 12 if ($index and my $file = locate_index($index, $path))
50 11 1 if ($auto_index)
51 11 0 unless $c->tx->res->code
67 1 0 ref $index eq 'ARRAY' ? :
70 1 0 if -e $path
84 8 3 $c->req->url eq '/' ? :
96 4 7 if $enable_json
107 0 11 unless $dir
112 22 128 if $ent eq '.' or $ent eq '..'
124 14 114 if ($is_dir)
129 14 114 $is_dir ? :
148 6 108 unless $_[0] =~ /\.([0-9a-zA-Z]+)$/