Branch Coverage

blib/lib/Dancer/Handler.pm
Criterion Covered Total %
branch 20 34 58.8


line true false branch
32 1 3 if ($ENV{'PLACK_ENV'})
38 4 0 if (defined setting("apphandler"))
44 1 3 if $error
67 0 18 if "Dancer::App"->current->setting("serializer")
74 0 18 if Dancer::Config::setting("auto_reload")
84 12 455 unless "Dancer::Renderer"->render_file or "Dancer::Renderer"->render_action or "Dancer::Renderer"->render_autopage
91 0 13 unless $continuation->isa("Dancer::Continuation::Halted") or $continuation->isa("Dancer::Continuation::Route")
149 0 25 if (ref $content eq 'GLOB') { }
153 3 0 if ($charset and $ctype and _is_text($ctype))
154 3 0 unless $response->_already_encoded
155 2 1 unless $ctype =~ /$charset/
158 20 5 unless (defined $response->header("Content-Length"))
165 0 0 unless (defined $response->header("Content-Length"))
172 0 25 if defined "Dancer::SharedData"->request and "Dancer::SharedData"->request->is_head
177 0 25 if ($response->status =~ /^[23]04$/)
188 0 25 if (ref $response->streamed and ref $response->streamed eq "CODE")
204 0 0 if (setting("startup_info"))