Branch Coverage

blib/lib/Template/Plugin/Bootstrap/Pagination.pm
Criterion Covered Total %
branch 35 36 97.2


line true false branch
24 0 9 if (defined $arg_ref and ref $arg_ref ne 'HASH')
48 3 4 unless $arg_ref
53 1 6 unless (blessed $pager and $pager->isa('Data::Page'))
58 4 2 if ($pager->total_entries > $pager->entries_per_page)
64 4 14 if ($current_page == $page) { }
70 10 4 if ($page == $first_page or $page == $last_page or abs $page - $current_page <= $$arg_ref{'siblings'} or $last_page <= 2 * $$arg_ref{'siblings'} + 1) { }
2 2 elsif ($first_page + 1 == $page or $last_page - 1 == $page) { }
83 1 1 $page < $current_page ? :
93 1 3 $$arg_ref{'right'} ? :
1 4 $$arg_ref{'centered'} ? :
112 2 3 unless $arg_ref
117 1 4 unless (blessed $pager and $pager->isa('Data::Page'))
122 2 1 $$arg_ref{'align'} ? :
125 2 1 $$arg_ref{'align'} ? :
140 14 6 if (defined $uri) { }
149 12 8 if (scalar @item_classes)
161 16 10 $_ ? :
171 2 30 if (not defined $uri or $uri eq '')