Branch Coverage

blib/lib/Pithub/Result.pm
Criterion Covered Total %
branch 34 38 89.4


line true false branch
17 0 580 unless ref $_[0]
19 0 580 unless eval { do { $_[0]->isa($class) } }
120 1 3 unless $self->success
122 1 2 if (ref $content eq "HASH" and scalar keys %$content == 0)
132 1 1 if (ref $content eq "ARRAY")
141 3 2 unless $self->first_page_uri
154 1 5 unless $uri_str
179 2 3 unless $self->last_page_uri
188 108 10 if $row
189 8 2 if ($self->auto_pagination)
191 2 6 unless $result
203 4 9 unless $self->next_page_uri
210 3 2 unless $self->prev_page_uri
234 19 1 if ($self->raw_content)
247 2 10 unless ref $content eq "ARRAY"
270 9 24 if $self->{'_get_link_header'}{$type}
272 5 19 unless $link
273 0 19 unless $link =~ /(next|first|last|prev)/
276 0 48 unless $result[1] and $result[0]