Branch Coverage

blib/lib/Kossy/Response.pm
Criterion Covered Total %
branch 23 36 63.8


line true false branch
17 30 4 if (defined $headers)
18 12 18 if (ref $headers eq 'ARRAY') { }
0 18 elsif (ref $headers eq 'HASH') { }
19 0 12 if @$headers % 2 != 0
26 34 0 defined $rc ? :
12 22 defined $content ? :
30 4 defined $headers ? :
35 0 30 if (@_) { }
37 0 0 if (ref $headers eq 'ARRAY') { }
0 0 elsif (ref $headers eq 'HASH') { }
38 0 0 if @$headers % 2 != 0
52 4 25 unless defined $body
53 14 15 if (not ref $body or &Scalar::Util::blessed($body) and overload::Method($body, '""') and not $body->can('getline')) { }
54 5 9 if &Encode::is_utf8($body)
63 0 29 if $DIRECT
64 0 29 unless $self->status
69 0 38 if $SECURITY_HEADER and $k eq 'X-XSS-Protection'
80 21 8 if $SECURITY_HEADER