| blib/lib/Dancer/Renderer.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 33 | 56 | 58.9 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 102 | 23 | 0 | 516 | $handler && $handler->app |
| 123 | 0 | 0 | 507 | defined $response and my $status = $response->status |
| 134 | 0 | 482 | 0 | defined $response and $response->exists |
| 168 | 3 | 0 | 5 | $view and -f $view |
| 178 | 1 | 0 | 2 | $view and -f $view |
| 200 | 421 | 0 | 30 | "Dancer::App"->current->setting("serializer") and $response->content |
| 254 | 16 | 0 | 0 | defined $since and $since >= $last_modified |
| line | l | !l | condition |
|---|---|---|---|
| 65 | 451 | 0 | 'Dancer'->VERSION || '' |
| 75 | 9 | 30 | $style ||= "style" |
| 92 | 24 | 515 | shift() || 1 |
| 166 | 5 | 3 | Dancer::engine('template')->view($viewpath) || '' |
| 174 | 2 | 1 | Dancer::engine('template')->view(Dancer::FileUtils::path($viewpath, 'index')) || '' |
| 235 | 532 | 0 | path($public) || '' |
| 296 | 0 | 39 | setting('charset') || 'UTF-8' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 64 | 451 | 0 | 0 | $response->{'headers'} ||= "HTTP::Headers"->new |
| 109 | 26 | 0 | 507 | $path ne "Dancer::SharedData"->request->path_info or $method ne "Dancer::SharedData"->request->method |
| 124 | 6 | 0 | 501 | $status == 302 or $status == 301 |
| 235 | 0 | 2 | 530 | not $static_file or index($static_file, path($public) || '') != 0 |
| 249 | 16 | 0 | 0 | 'Dancer::SharedData'->response || 'Dancer::Response'->new |
| 264 | 2 | 14 | 0 | $mime && _get_full_mime_type($mime) || 'Dancer::SharedData'->request->content_type || _get_mime_type($static_file) |
| 289 | 1 | 0 | 0 | 'Dancer::SharedData'->response || 'Dancer::Response'->new |