Branch Coverage

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


line true false branch
18 0 580 unless ref $_[0]
21 0 580 unless eval { do { $_[0]->isa($class) } }
123 1 3 unless $self->success
125 1 2 if (ref $content eq "HASH" and scalar keys %$content == 0)
135 1 1 if (ref $content eq "ARRAY")
144 3 2 unless $self->first_page_uri
157 1 5 unless $uri_str
182 2 3 unless $self->last_page_uri
191 108 10 if $row
192 8 2 if ($self->auto_pagination)
194 2 6 unless $result
206 4 9 unless $self->next_page_uri
213 3 2 unless $self->prev_page_uri
237 19 1 if ($self->raw_content)
250 2 10 unless ref $content eq "ARRAY"
274 9 24 if $self->{'_get_link_header'}{$type}
276 5 19 unless $link
277 0 19 unless $link =~ /(next|first|last|prev)/
280 0 48 unless $result[1] and $result[0]