Branch Coverage

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


line true false branch
83 571 0 if (%opt)
84 569 2 if defined $opt{'type'}
85 0 571 if defined $opt{'code'}
86 2 569 if (defined $opt{'raw'} and ref $opt{'raw'} eq 'ARRAY')
115 571 5455 unless defined $$self{'raw'}
116 6021 5 if defined $value
117 6021 5 if defined $value
118 6021 5 if defined $value
134 3 28523 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 3855 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 164 5857 if ($last eq '.' and $self->code == 301 || $self->code == 300) { }
3598 2259 elsif ($self->has_more == 1) { }
406 3540 elsif ($self->code != 301 and $self->code != 300) { }
266 1853 3598 if (defined $self->code and $self->code == 301 || $self->code == 300)
269 164 1689 if $raw eq '.'
278 3598 570 if $result[1] eq '-'
279 570 3598 if $result[1] eq ' '
280 4004 164 unless $self->code == 301 or $self->code == 300
288 18073 0 if 'Net::Gnats'->verbose_level != 3