Branch Coverage

blib/lib/Dancer2/Core/Response.pm
Criterion Covered Total %
branch 22 26 84.6


line true false branch
84 2 6 if @_ > 1
134 7 526 if $self->is_encoded
140 0 526 unless $ct =~ /^text/
143 34 492 unless $content
145 492 0 unless $ct =~ /charset/
175 602 2 if $self->server_tokens
181 1 603 if Plack::Util::status_with_no_entity_body($status)
189 31 572 unless defined $content
191 576 27 if (not $headers->header('Content-Length') || $headers->header('Transfer-Encoding') and defined(my $content_length = length $content))
198 1 602 unless $self->content_type
206 1107 1131 if (scalar @_ > 0) { }
255 0 77 unless my $serializer = $self->serializer
258 0 77 unless $content = $serializer->serialize($content)