Branch Coverage

blib/lib/Tags/HTML/Pager.pm
Criterion Covered Total %
branch 31 44 70.4


line true false branch
52 1 13 unless (defined $self->{'css_pager'})
56 1 12 unless (defined $self->{'url_page_cb'})
60 1 2 unless ($self->{'flag_paginator'} or $self->{'flag_prev_next'})
78 3 1 defined $self->{'css_colors'}{$css_color} ? :
85 1 6 unless ($pages_hr)
88 1 5 unless (exists $pages_hr->{'pages_num'})
91 1 4 unless (exists $pages_hr->{'actual_page'})
94 1 3 if ($pages_hr->{'actual_page'} > $pages_hr->{'pages_num'})
102 1 1 if (not $self->{'flag_paginator'} and $self->{'flag_prev_next'} and $pages_hr->{'pages_num'} == 1)
114 1 1 if ($self->{'flag_paginator'})
121 0 1 if ($pages_hr->{'actual_page'} > 4 and $pages_hr->{'pages_num'} > $NUMBER_OF_BOXES)
134 0 0 if ($pages_hr->{'actual_page'} < $pages_hr->{'pages_num'} - 3) { }
140 0 1 if ($pages_hr->{'actual_page'} < $pages_hr->{'pages_num'} - 3 and $pages_hr->{'pages_num'} > $NUMBER_OF_BOXES)
143 0 0 if ($pages_hr->{'actual_page'} > 4) { }
150 1 0 if ($pages_hr->{'actual_page'} eq $button_num) { }
166 0 1 if ($pages_hr->{'actual_page'} < $pages_hr->{'pages_num'} - 3 and $pages_hr->{'pages_num'} > $NUMBER_OF_BOXES)
186 1 1 if ($self->{'flag_prev_next'} and $pages_hr->{'pages_num'} > 1)
188 1 0 if ($pages_hr->{'pages_num'} > 1)
189 0 1 if ($pages_hr->{'actual_page'} > 1)
192 1 0 if ($pages_hr->{'actual_page'} < $pages_hr->{'pages_num'})
219 0 1 $prev ? :
1 0 $next ? :