blib/lib/Router/PathInfo/Static.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 15 | 27 | 55.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
114 | 0 | 0 | 4 | -e $$token{'path'} and -d _ |
0 | 0 | 4 | -e $$token{'path'} and -d _ and $$token{'first_uri_segment'} | |
132 | 0 | 8 | 10 | $$self{$_} and $first_segment eq $$self{$_ . '_uri_segment'} |
153 | 0 | 0 | 12 | $serch_file and @segment |
167 | 4 | 0 | 3 | -f $serch_file and -s _ |
4 | 0 | 3 | -f $serch_file and -s _ and -r _ |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
164 | 1 | 0 | 9 | $serch_file =~ /^\./ or $serch_file =~ /~/ |
1 | 2 | 7 | $serch_file =~ /^\./ or $serch_file =~ /~/ or grep {$_ =~ /~/ unless $_ =~ /^\./;} @segment | |
169 | 3 | 0 | 0 | 'Plack::MIME'->mime_type($serch_file) || mimetype($serch_file) |