Branch Coverage

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


line true false branch
17 23 4 if (defined $headers)
18 5 18 if (ref $headers eq 'ARRAY') { }
0 18 elsif (ref $headers eq 'HASH') { }
19 0 5 if @$headers % 2 != 0
26 27 0 defined $rc ? :
5 22 defined $content ? :
23 4 defined $headers ? :
35 0 23 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 18 unless defined $body
53 14 8 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 22 if $DIRECT
64 0 22 unless $self->status
69 0 30 if $SECURITY_HEADER and $k eq 'X-XSS-Protection'
80 21 1 if $SECURITY_HEADER