Branch Coverage

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


line true false branch
84 2 6 if @_ > 1
134 7 538 if $self->is_encoded
140 0 538 unless $ct =~ /^text/
143 35 503 unless $content
145 503 0 unless $ct =~ /charset/
175 615 2 if $self->server_tokens
181 1 616 if Plack::Util::status_with_no_entity_body($status)
189 32 584 unless defined $content
191 589 27 if (not $headers->header('Content-Length') || $headers->header('Transfer-Encoding') and defined(my $content_length = length $content))
198 2 614 unless $self->content_type
206 1131 1156 if (scalar @_ > 0) { }
255 0 78 unless my $serializer = $self->serializer
258 1 77 unless $content = $serializer->serialize($content)