Condition Coverage

blib/lib/Dancer/Renderer.pm
Criterion Covered Total %
condition 33 56 58.9


and 3 conditions

line !l l&&!r l&&r condition
101 23 0 513 $handler && $handler->app
122 0 0 504 defined $response and my $status = $response->status
133 0 479 0 defined $response and $response->exists
167 3 0 5 $view and -f $view
177 1 0 2 $view and -f $view
199 418 0 30 "Dancer::App"->current->setting("serializer") and $response->content
253 16 0 0 defined $since and $since >= $last_modified

or 2 conditions

line l !l condition
64 448 0 'Dancer'->VERSION || ''
74 9 30 $style ||= "style"
91 24 512 shift() || 1
165 5 3 Dancer::engine('template')->view($viewpath) || ''
173 2 1 Dancer::engine('template')->view(Dancer::FileUtils::path($viewpath, 'index')) || ''
234 529 0 path($public) || ''
295 0 39 setting('charset') || 'UTF-8'

or 3 conditions

line l !l&&r !l&&!r condition
63 448 0 0 $response->{'headers'} ||= "HTTP::Headers"->new
108 26 0 504 $path ne "Dancer::SharedData"->request->path_info or $method ne "Dancer::SharedData"->request->method
123 6 0 498 $status == 302 or $status == 301
234 0 2 527 not $static_file or index($static_file, path($public) || '') != 0
248 16 0 0 'Dancer::SharedData'->response || 'Dancer::Response'->new
263 2 14 0 $mime && _get_full_mime_type($mime) || 'Dancer::SharedData'->request->content_type || _get_mime_type($static_file)
288 1 0 0 'Dancer::SharedData'->response || 'Dancer::Response'->new