Branch Coverage

blib/lib/Web/Response.pm
Criterion Covered Total %
branch 33 40 82.5


line true false branch
77 12 44 if (@_ == 1 and ref $_[0] eq 'ARRAY') { }
12 32 elsif (@_ == 1 and ref $_[0] eq 'CODE') { }
83 2 10 @{$_[0];} > 1 ? :
0 12 @{$_[0];} > 2 ? :
109 12 39 if $self->has_streaming_response
132 18 21 unless $self->has_encoding
137 21 8 unless defined $chunk
153 2 10 unless $self->has_encoding or $self->has_cookies
159 0 10 unless $self->has_encoding
162 10 15 unless defined $chunk
171 0 23 unless $self->has_encoding
193 0 23 unless defined $val
194 0 23 unless ref $val eq 'HASH'
204 9 14 if defined $val->{'domain'}
206 9 14 if defined $val->{'path'}
208 9 14 if defined $val->{'expires'}
210 7 16 if defined $val->{'max-age'}
212 0 23 if $val->{'secure'}
214 0 23 if $val->{'httponly'}
227 2 7 unless $expires =~ /^\d+$/