Branch Coverage

blib/lib/Net/Gnats/Response.pm
Criterion Covered Total %
branch 43 54 79.6


line true false branch
83 565 0 if (%opt)
84 563 2 if defined $opt{'type'}
85 0 565 if defined $opt{'code'}
86 2 563 if (defined $opt{'raw'} and ref $opt{'raw'} eq 'ARRAY')
115 565 5429 unless defined $$self{'raw'}
116 5989 5 if defined $value
117 5989 5 if defined $value
118 5989 5 if defined $value
134 3 28347 if ($$self{'type'} == 1)
147 1 5 unless defined $$self{'inner_responses'}
173 0 0 if ($self->type == 1)
175 0 0 if $_->status == 0
179 0 0 if $self->code
199 3 3854 if ($$self{'type'} == 1)
218 3 97 if ($$self{'type'} == 1)
225 2 1 defined $last_response ? :
234 0 2 if (ref $response eq 'ARRAY') { }
0 2 elsif (not $response->isa('Net::Gnats::Response')) { }
247 163 5826 if ($last eq '.' and $self->code == 301 || $self->code == 300) { }
3598 2228 elsif ($self->has_more == 1) { }
401 3514 elsif ($self->code != 301 and $self->code != 300) { }
266 1827 3598 if (defined $self->code and $self->code == 301 || $self->code == 300)
269 163 1664 if $raw eq '.'
278 3598 564 if $result[1] eq '-'
279 564 3598 if $result[1] eq ' '
280 3999 163 unless $self->code == 301 or $self->code == 300
288 17977 0 if 'Net::Gnats'->verbose_level != 3