Branch Coverage

blib/lib/Dancer/Renderer.pm
Criterion Covered Total %
branch 35 40 87.5


line true false branch
34 448 19 defined $resp ? :
46 2 30 if $response
62 448 0 if (Dancer::Config::setting("server_tokens"))
101 513 23 $handler && $handler->app ? :
108 26 504 if ($path ne "Dancer::SharedData"->request->path_info or $method ne "Dancer::SharedData"->request->method)
111 2 24 if ($depth > $MAX_RECURSIVE_LOOP)
122 504 0 if (defined $response and my $status = $response->status)
123 6 498 if ($status == 302 or $status == 301)
131 479 19 if ($handler) { }
133 0 479 if defined $response and $response->exists
157 11 8 unless Dancer::setting("auto_page")
167 5 3 if ($view and -f $view)
177 2 1 if ($view and -f $view)
199 30 418 if ("Dancer::App"->current->setting("serializer") and $response->content)
220 1 529 if ($path_info =~ /\0/)
228 529 0 defined $app->setting('public') ? :
234 2 527 if not $static_file or index($static_file, path($public) || '') != 0
244 16 545 if (-f $static_file)
253 0 16 if (defined $since and $since >= $last_modified)
261 2 14 if $status