Branch Coverage

blib/lib/Dancer2/Core/Response.pm
Criterion Covered Total %
branch 23 26 88.4


line true false branch
84 2 8 if @_ > 1
134 9 566 if $self->is_encoded
140 0 566 unless $ct =~ /^text/
143 35 531 unless $content
145 531 0 unless $ct =~ /charset/
175 642 2 if $self->server_tokens
181 1 643 if Plack::Util::status_with_no_entity_body($status)
189 32 611 unless defined $content
191 616 27 if (not $headers->header('Content-Length') || $headers->header('Transfer-Encoding') and defined(my $content_length = length $content))
198 2 641 unless $self->content_type
206 1187 1211 if (scalar @_ > 0) { }
255 0 78 unless my $serializer = $self->serializer
258 1 77 unless $content = $serializer->serialize($content)