Branch Coverage

blib/lib/CGI/Pager.pm
Criterion Covered Total %
branch 10 30 33.3


line true false branch
47 0 4 unless defined $offset
51 1 3 if ($offset == 0 and $$self{'hide_zero_offset'}) { }
90 1 2 $self->is_at_end ? :
98 1 2 if $self->is_at_start
101 0 2 if $prev_offset < 0
114 0 0 if $last_offset < 0
133 0 0 if $result > $$self{'total_count'}
176 1 0 unless ($$self{'pages'})
195 0 1 wantarray ? :
204 0 0 if ($format eq 'combined_div') { }
0 0 elsif ($format eq 'combined') { }
0 0 elsif ($format eq 'pages') { }
205 0 0 @{$self->pages;} > 1 ? :
215 0 0 $$_{'is_current'} ? :
222 0 0 if $format =~ /^(first|prev)$/ and $self->is_at_start or $format =~ /^(last|next)$/ and $self->is_at_end