| blib/lib/Mojolicious/Plugin/RenderFile.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 17 | 20 | 85.0 |
| line | true | false | branch |
|---|---|---|---|
| 19 | 5 | 8 | if $args{'filename'} and not utf8::is_utf8($args{'filename'}) |
| 20 | 7 | 6 | if $args{'filepath'} and not utf8::is_utf8($args{'filepath'}) |
| 29 | 1 | 12 | if $args{'format'} |
| 34 | 9 | 4 | if (my $filepath = $args{'filepath'}) { } |
| 4 | 0 | elsif ($args{'data'}) { } | |
| 35 | 0 | 9 | unless (-f $filepath and -r $filepath) |
| 63 | 5 | 8 | if (my $range = $c->req->headers->range) { } |
| 66 | 5 | 0 | $size - 1 >= 0 ? : |
| 69 | 4 | 1 | if ($range =~ /^bytes=(\d+)-(\d+)?/ and $1 <= $end) { } |
| 71 | 2 | 2 | if defined $2 and $2 <= $end |