Branch Coverage

blib/lib/Mewsoft/Pagination.pm
Criterion Covered Total %
branch 0 78 0.0


line true false branch
171 0 0 $args{'entries_per_page'} > 0 ? :
172 0 0 $args{'current_page'} > 0 ? :
173 0 0 $args{'pages_per_set'} > 0 ? :
175 0 0 if (defined $args{'mode'} and $args{'mode'} eq 'fixed') { }
191 0 0 if ($$self{'total_entries'} % $$self{'entries_per_page'})
192 0 0 if $$self{'last_page'} < 1
195 0 0 if ($$self{'current_page'} > $$self{'last_page'})
200 0 0 if ($$self{'total_entries'} == 0) { }
207 0 0 if ($$self{'current_page'} == $$self{'last_page'}) { }
214 0 0 if ($$self{'total_entries'} == 0) { }
221 0 0 if ($$self{'current_page'} > 1) { }
228 0 0 $$self{'current_page'} < $$self{'last_page'} ? :
234 0 0 @{$$self{'Page_Set_Pages'};}[0] == 1 ? :
236 0 0 @{$$self{'Page_Set_Pages'};}[$#{$$self{'Page_Set_Pages'};}] == $$self{'last_page'} ? :
251 0 0 if (@_)
270 0 0 if (@_)
289 0 0 if (@_)
309 0 0 if (@_)
329 0 0 if (@_)
348 0 0 if ($$self{'total_entries'} == 0) { }
487 0 0 if (not $$self{'pages_per_set'} > 1) { }
489 0 0 if $$self{'current_page'} != 1
491 0 0 if $$self{'current_page'} < $$self{'last_page'}
493 0 0 if ($$self{'mode'} eq 'fixed') { }
497 0 0 if ($end_page < $$self{'last_page'})
501 0 0 if ($starting_page > 1)
503 0 0 if $$self{'Page_Set_Previous'} < 1
506 0 0 if $$self{'last_page'} < $end_page
513 0 0 if ($$self{'pages_per_set'} >= $$self{'last_page'}) { }
524 0 0 if ($$self{'pages_per_set'} % 2 != 0)
531 0 0 if $starting_page < 1
533 0 0 if $self->last_page < $end_page
535 0 0 if ($$self{'current_page'} <= $middle) { }
0 0 elsif ($$self{'current_page'} > $$self{'last_page'} - $middle - $offset) { }
548 0 0 if $$self{'Page_Set_Previous'} < 1
564 0 0 if ($$self{'pages_per_set'} > 0)
566 0 0 if ($$self{'current_page'} % $$self{'pages_per_set'} == 0)
586 0 0 if defined $$self{'Page_Set_Previous'}
602 0 0 if defined $$self{'Page_Set_Next'}