Branch Coverage

blib/lib/Template/Magic/Pager.pm
Criterion Covered Total %
branch 29 38 76.3


line true false branch
15 0 9 if ref $c
16 0 9 if @_ % 2
19 27 0 if ($s->can($p)) { }
26 7 2 if (ref $$s{'total_results'} eq 'ARRAY')
31 8 1 $$s{'total_results'} ? :
37 7 2 unless /^[\d]+$/
46 9 0 if /^[\d]+$/
61 6 22 $s->total_results % $s->rows_per_page ? :
67 6 4 if $s->page_number < $s->total_pages
71 3 2 if $_[0]->next_page
76 10 0 if $s->page_number > 1
80 5 0 if $_[0]->previous_page
92 3 131 $end > $s->total_results - 1 ? :
113 9 4 if ($total_pages / 2 > $page_number) { }
115 5 4 if $start < 1
117 0 9 if $end > $total_pages
121 4 0 if $end > $total_pages
123 0 4 if $start < 1
125 117 13 $_ != $page_number ? :